If the two programs are compared, it is evident that the por-
tions signaled are identical. If these portions are incorpo-
rated to one single sub-routine, the program will be simpler
and the number of steps required will decrease.
Furthermore, the signaled portions with wavy lines are not
identical but P1 can be modifi ed to
and then both portions will be equal. Now, the portions la-
beled with a line will be stored in an independent routine in
P9 and the portion with wavy lines will be stored in P8.
After the common portions have been eliminated, the re-
minder of the regular octahedron formula will be stored in
P0 and the tetrahedron in P1. Prog 9 and Prog 8 must be
added in order to skip to sub-routines P9 and P8.
With this confi guration, the execution of the program skips
from program P9 at the beginning of the programs P0 and
P1. Three decimal spaces are specifi ed. The value for one
side is introduced and the volume and surface area are cal-
culated.
The expression 2x from the original tetrahedron formula was
omitted in P9, so the execution returns to P0. Ans x 2 is