INPUT [prompt,|;] var[, var [, ...]]
Reads text from keyboard and stores it in the variable var
. The string prompt
is printed on the screen. If promt
is followed by a ;
, a question mark and a space are printed additionally. If you want to input two or more variables, the input needs to be separated with ,
.
input "How old are you?", age print age
input "Input three numbers: ", a, b, c ' Input i.e. 1,2,3 print a, b, c