InpSt
‡ program editor
I/O menu
Input
‡ program editor
I/O menu
InpSt
promptString
,
variable
Pauses a program, displays promptString, and waits for
the user to enter a response. The response is stored to
variable always as a string. When entering the response,
the user should not enter quotation marks.
To prompt for a number or expression instead of a
string, use
.
Input
InpSt
variable
Displays
?
as the prompt.
Input
promptString
,
variable
Pauses a program, displays promptString, and waits for
the user to enter a response. The response is stored to
variable in the form in which the user enters it.
A number or expression is stored as a number or
expression.
A list, vector, or matrix is stored as a list, vector, or
matrix.
An entry enclosed in " marks is stored as a string.
Input
variable
Displays
?
as the prompt.
Chapter 20: A to Z Function and Instruction Reference
Program segment:
:InpSt "Enter your name:",STR
Program segment:
:Input "Enter test score:",SCR
©
©
©
©
307