What's new

Java Marie Simulator Code

M H I N Y E

Forum Guru
Elite
Joined
May 11, 2018
Posts
3,675
Solutions
5
Reaction
5,922
Points
1,635

Pa help mga idolo kung tama ba tong pagkagawa ko​


Write a MARIE source code that will ask for three decimal values.
It will add the first two inputs and then subtract the third input
from the sum of the first two inputs.

Code:
INPUT
store A
INPUT
store B
INPUT
store C
load A
add B
store D
load D
subtract C
store E
OUTPUT
Halt

A, DEC 0
B, DEC 0
C, DEC 0
D, DEC 0
E, DEC 0
 
Mukhang familiar sakin to ha, assignment Namin to dati hahah.
 
Last edited:

Similar threads

Back
Top