In: Computer Science
Marielab1
input your age and display what your age would be next year.
submit screen shots from Marie.
im 24 and going to be 25 next year.
ANSWER:
I have provided the code and the screenshots of MARIE for the given problem below:
Code:
ORG 0 //u can skip this too
INPUT
STORE X
LOAD X
ADD Y
OUTPUT
HALT
X, dec 0
Y, dec 1
Marie screenshot:
IF YOU HAVE ANY DOUBT PLEASE COMMENT DOWN BELOW I WILL
SOLVE IT FOR YOU:)
----------------PLEASE RATE THE ANSWER-----------THANK
YOU!!!!!!!!----------