INPUT [prompt$;] var1 [,var2 [, var3 [, etc]]]
Will take a list of values separated by commas , entered at the console and will assign them to a sequential list of variables.
For example, if the command is:
INPUT a, b, c
And the following is typed on the keyboard: 23, 87, 66
Then
a = 23 and b = 87 and c = 66
The list of variables can be a mix of float, integer or string variables.
The values entered at the console must correspond to the type of variable.
If a single value is entered a comma is not required (however that value cannot contain a comma).
prompt$ is a string constant (not a variable or expression) and if specified it will be printed first.
Normally the prompt is terminated with a semicolon ; and in that case a question mark ? will be printed following the prompt. If the prompt is terminated with a comma , rather than the semicolon ; the question mark will be suppressed.
INPUT #nbr, list of variables
Same as above except that the input is read from a serial port or file previously opened for INPUT as nbr.
See the OPEN command.