Marie infinity loop? - Programmers Heaven

Howdy, Stranger!

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

Categories

Marie infinity loop?

Hello,

My assignment is to create a program that will read the input values a,b,c and c from the keyboard, and the final result ( z ) have to be displayed. also the 3 inputted values will need to be displayed too.

[code]
input A
store A //(at 0)
output A

input B
store B
output B

input C
store C
output C

load C
subt C
store C

load Z
add A
store Z
Skipcond 00d
Jump 007
output Z
halt

A, dec 0
B, dec 0
C, dec 0
Z, dec 0
[/code]

with my code i have infinity loop and i can't show the final result. whats my problem ?
Sign In or Register to comment.