The loop control number is stored in
R00. The counter test
value (fff) is
zero and the increment value
(cc) is 01. When
iiiii reaches zero,
the net line in the program is skipped. Until then, the
program loops back to LBL 01.
gGTO
01
17 GTO 01
The end of the loop.
RCL 01
18 RCL 01
Recalls the year.
gFIX
0
19 FIX 0
XEQ
ALPHAPSEALPHA
20 PSE
Pauses to display the year.
gFIX
2
21 FIX 2
RCL 02
22 RCL 02
Recalls the final amount.
gGTO··
00 REG 39
Now run the program to find the amount in the savings account after
6 years; after 355 years. (This will take a couple of minutes to run,
time enough to take a short break.)
Keystrokes
Display
PRGM
0.0000
Takes the HP-41C out of PRGM mode.
XEQ
ALPHAGOTHAMALPHA
YEARS?
The program prompts and stops for input.
6 R/S
1,630
After 6 years, in 1630, the account would have been
worth $34.04.
34.04
XEQ
ALPHAGOTHAMALPHA
YEARS?
355 R/S
1,979
2.31
10
After 355 years, in 1979, the account would be
worth about $23.1 billion.