INPUT { string-constant {;} {},} } {varl {,var2...varN} {;}

The INPUT command waits until a valid character is entered at the current input device (keyboard, cassette, parallel port etc.). If the data entered is separated by commas, the first piece of information will be assigned to the first variable, the second piece of information to the second variable etc. If there are multiple variables on the INPUT line, and the user presses <CR> after entering a piece of information, BASIC will prompt with ??.

Program Example.

00100 PRINT "Please enter a number""
00110 INPUT B
00120 INPUT "Please enter name and age ", D0$,E
00130 PRINT B
00140 PRINT "Hello ";D0$;" are you really ";E "; years old?"
00150 END

Try it

See also KEY$