Program
In this program, a 0 is stored in the B memory slot in order to
delete it from the sum operation.
Afterwards, the input value for
is stored in
memory slot A for
and is determined if the stored
value in memory slot A is equal to 0. If A=0, Goto 2 skips
to command Lnl 2. If the memory in slot A is not equal to
0, Goto 2 will be skipped and the A+B command
will
be executed.
The execution of Lbl 2 will be display the sum that will be
stored in memory on the screen. In reality, the
command is inserted after B but it can be omitted here.
The following chart shows the fl ow of the program: