
INPtJ1r[,l
[<"prompt stringJl>,l<listof variables>
8K, Extended, Disk
To allow input from the terminal during
program
execution.
When an INPUT statement is encountered,
program
execution
pauses and a question mark is printed
to indicate the program is waiting for data.
If
<"prompt
string">
is
included,
the string is
printed before the question mark.
The
required
data is then entered at the terminal.
If INPUT is immediately followed by
then
the carriage
return typed by
input data does not echo a carriage
feed sequence.
The data that is
entered
is
assigned
to
variable(s)
given
in
<variable
list>.
number of data items supplied must be
the
as
the
number
of variables in the list.
items are separated by commas.
a semicolon,
the user
to
return/line
the
The
same
Data
The variable names in the list may be numeric or
string
variable
names
(including
subscripted
variables).
The type of each data item that
is
input
must agree with the type specified by the
variable
name.
(Strings
input
to
an
INPU'r
statement
need
not
be surrounded by quotation
marks. )
Responding to INPUT with too
many
or
too
few
items,
or with the wrong type of value (numeric
instead of string,
etc.)
causes
the
messsage
"?Redo from start" to be printed.
No assignment
of input values
is
made
until
an
acceptable
response is given.
In the 8K
version,
INPUT
is
illegal
in
the
direct mode.
Summary of Contents for Basic Interpreter Basic 80
Page 1: ...5IA iC intc tit tcl c t ...
Page 2: ......
Page 6: ... ...
Page 10: ......
Page 26: ......
Page 33: ...2 5 Intentially left blank ...
Page 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Page 112: ......
Page 136: ......
Page 140: ......
Page 160: ......
Page 165: ......
Page 166: ......
Page 174: ......
Page 176: ......
Page 182: ......
Page 184: ......
Page 190: ......