A SERVICE OF

logo

12–16 Simple Programming
Keys:
(In RPN mode)
Display: Description:
|
V
 #$ #
Displays volume.
|
S
 #$
Displays surface area.
|
 !
Ends program.
{Y
{

}

/
Displays label C and the
length of the program in
bytes.
|
/
/
Checksum and length of
program.

Cancels program entry.
Now find the volume and surface area–of a cylinder with a radius of 2
1
/
2
cm
and a height of 8 cm.
Keys:
(In RPN mode)
Display: Description:
X
C
@
value
Starts executing C; prompts
for
R. (It displays whatever
value happens to be in
R.)
2
1
2
g
@
value
Enters 2
1
/
2
as a fraction.
Prompts for
H.
8
g
# - 
Message displayed.
g
#/
)
Volume in cm
3
.
g
/
)
Surface area in cm
2
.
Displaying Information without Stopping
Normally, a program stops when it displays a variable with VIEW or displays an
equation message. You normally have to press
g
to resume execution.
If you want, you can make the program continue while the information is displayed.
If the
next program line — after a VIEW instruction or a viewed equation —
contains a PSE
(pause) instruction, the information is displayed and execution
continues after a 1–second pause. In this case, no scrolling or keyboard input is
allowed.