Chapter 16: Programming
290
Note:
When a program prompts for input of lists and
Y
n
functions during execution, you must
include the braces (
{ }
) around the list elements and quotation marks (
"
) around the
expressions.
Prompt
During program execution,
Prompt
displays each
variable
, one at a time, followed by
=?
. At each
prompt, enter a value or expression for each
variable
, and then press
Í
. The values are stored,
and the program resumes execution.
Prompt
variableA
[
,
variableB
,
...
,
variable n
]
Program
Output
Note:
Y= functions are not valid with
Prompt
.
Displaying the Home Screen
Disp
(display) without a value displays the home screen. To view the home screen during program
execution, follow the
Disp
instruction with a
Pause
instruction.
Disp
Displaying Values and Messages
Disp
with one or more
values
displays the value of each.
Disp
[
valueA
,
valueB
,
valueC
,
...
,
value n
]
•
If
value
is a variable, the current value is displayed.
•
If
value
is an expression, it is evaluated and the result is displayed on the right side of the next
line.
•
If
value
is text within quotation marks, it is displayed on the left side of the current display line.
!
is not valid as text.
If
Pause
is encountered after
Disp
, the program halts temporarily so you can examine the screen.
To resume execution, press
Í
.
Program
Output