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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.