Marie Simulator - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Marie Simulator

Ok cna someone break how to write this for a Marie Simultor...Please, Step by Step, so i better understand what to do...Thank You

Input a number
If number >10 then
number = number -5
Else
number = number + 3
Endif

This is what I did
Org 100
Input
Store X
Skipcond 010
Jump Else
Sudt 5
Jump endif
Else, Add 5
Endif, Halt
X, Dec 0

Please, tell me what I did wrong I am lost. Please, break it step by step for me!!!

Thank You in advance!!!

Comments

  • maxsky0109maxsky0109 Posts: 1Member
    org 100
    input
    store number
    subt y
    skipcond 800
    jump else
    load number
    subt z
    store number
    else load number
    add k
    store number
    halt
Sign In or Register to comment.