HP -15C Owner's Handbook Manual page 94

Hide thumbs Also See for HP-15C:
Table of Contents

Advertisement

94
Section 8: Program Branching and Controls
Keystrokes
l * 1
´©
l 2
| T 9
| n
3
O+ 0
tA
Notice that without lines 012 to 014, the loop would run indefinitely (until
stopped from the keyboard).
Let's run the program, using t
half of N
(50 mci).
0
Keystrokes
| ¥
2 O 0
100 O 1
50 O 2
´A
Display
010-45,20, 1
011-
42 31
012-
45
013-43,30, 9
014-
43 32
015-
016-44,40, 0
017-
22 11
= 2 days, N
1
Display
2.0000
100.0000
50.0000
2.0000
84.0896
5.0000
64.8420
8.0000
50.0000
50.0000
Recall multiplication with the
contents of R
the mci of
days
Pauses to display N
2
Recalls limit value to X-register.
x ≥ y ? Tests whether limit value
(in X) meets or exceeds N
(in Y).
If so, program ends.
3
If not, program continues.
Adds 3 days to t in R
Go to ―A‖ and repeat execution
to find a new N
= 100 mci, and a limit value of
0
Run mode (display will vary).
t
1.
N
.
0
Limit value for N
t
1.
N
.
1
t
2.
N
.
2
t
3.
N
.
3
N
limit; program ends.
t
(N
), yielding N
1
0
131
I remaining after t
.
t
t
.
0
from a new t.
t
.
t
,
t

Advertisement

Table of Contents
loading

Table of Contents