Radio Shack TRS-80 PC-3 Owner's Manual page 143

Table of Contents

Advertisement

variable in the list. If other variables are included in the same INPUT statement, this process is repeated until the list is exhausted.
If a prompt is included in the INPUT statement, the process is exactly the same except that, instead of the question mark, the
prompt string is displayed at the left edge of the display. If the prompt string is followed by a semicolon, the cursor is positioned
immediately following the prompt. If the prompt is followed by a comma, the prompt is displayed; then, when a key is pressed,
the display is cleared and the first character of the input is displayed at the left edge.
When a prompt is specified and there is more than one variable in the list following it, the second and succeeding variables are
prompted with the question mark.
If a second prompt is included in the list, it is displayed for the variable which immediately
follows it.
If alphabetic characters are entered for a numeric variable, the variable is assigned a value of zero. if the
(ENTER)
key is pressed
and no input is provided, the variable retains the value it had before the INPUT statement.
Examples
10 INPUT A
20 INPUT "A =" ; A
30INPUT"A=",A
40 INPUT "X =
? " ;
X, "Y =
?" ;
Y
Clears the display and puts a question mark at the left edge.
Displays "A =" and then displays the input data continuously.
Displays' A ='
When the data is input, "A =" disappears and then the data is displayed.
Displays 'X =
?'
and waits for first input. After
(ENTER)
is pressed, display is cleared
and 'Y =
?'
is displayed at left edge.
143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents