( 
( 
arith-arr-var  arith-arr-var 
INPUT  char-var  ,  char-var 
.. 
l
arith_var 
l[!arith_var 
lu 
char-arr-var  char-arr-var 
~~func 
~r4unc 
INPUT 
The INPUT statement allows you 
to 
assign values to variables from the keyboard 
while your program 
is 
being executed.  The syntax of 
the 
INPUT statement 
is 
as 
shown: 
arith-arr-var  arith-arr-var 
INPUT  char-var  ,  char-var 
.. 
l
arith_var 
l[!arith_var 
lu 
char-arr-var  char-arr-var 
~r-func 
str-func 
where: 
var 
are simple arithmetic 
or 
character variables, subscripted references 
to 
an array 
element, 
or 
substring references.  The rows and columns references 
to 
an array 
element must be enclosed 
in 
parentheses.  Only one variable 
is 
required 
in 
an 
INPUT statement, although many variables can 
be 
specified. 
When 
an  INPUT statement 
is 
executed, it displays a question mark on 
the 
display 
screen, and program execution halts.  You must then enter a list 
of 
values 
that 
will 
be assigned, 
in 
the order they are entered, 
to 
the variables listed 
in 
the I NPUT state· 
ment.  When 
the 
complete list has  been entered, press  EXECUTE 
to 
resume program 
execution. 
Subscripts 
of 
array variables 
in 
the INPUT statement are evaluated as they occur. 
Thus, an assigned variable 
in 
an  INPUT statement can be used subsequently 
as 
the 
subscript 
of 
another variable 
in 
the same statement. 
Character constants 
that 
contain 
less 
than 18 characters are padded on 
the 
right 
with blanks 
to 
a length 
of 
18 before being assigned 
to 
character variables.  Character 
constants containing more than 18 characters are truncated on 
the 
right 
to 
a length 
of 
18 before being assigned.  Character constants containing no characters (null) 
are assigned as  18 blank characters. 
81