used in order to obtain the octahedron surface area.
In the case of P1, the result of P9 needs to be unmodifi ed.
The volume calculation is also realized in a similar form. Af-
ter the skip is realized to P8 in order to realize the calcula-
tion, the execution returns to the principal routine. In P0,
the program fi nishes after the volume of the octahedron is
displayed on the screen. In P1, however, the result of the
P8 calculation is divided by 4 in order to obtain the volume
of the tetrahedron.
Using subroutines in this way, the used steps can be re-
duced and the programs can be read in an easier way.
The following illustration shows the fl ow of the program.
Types of Memory Fixes
Up until this point, all memories are referred to by characters
such as A, B, X, or Y.