statement/INPUT statement/INPUT NAME INPUT -- Asks input from the user and stores acquired data ABBREVIATION None SYNOPSIS INPUT["<prompt>";]<variable>[,<...>,<variable>] FUNCTION The INPUT statement allows the computer to ask for data from the person running the program and place it into a variable or variables. The program stops, prints a question mark (?) on the screen, and waits for the person to type the answer and press the <return> key. The word INPUT is followed by a variable name (<variable>) or list of variable names separated by commas. There may be a message inside quotes before the list of variables to be input (<prompt>). If this message (called a prompt) is present, there must be a semicolon (;) after the closing quote of the prompt. When more than one variable is to be INPUT, they should be separated by commas when typed in. If not, the computer asks for the remaining values by printing two question marks (??). If you press <return> key without INPUTting values, the INPUT variables retain the values previously held for those variables. INPUTS <prompt> - prompt string <variable> - acquired data will be stored in this variable RESULT Asks input from the user and stores acquired data in the target variable(s). EXAMPLES 10 INPUT "WHAT'S YOUR NAME";A$ 20 INPUT "AND YOUR FAVOURITE COLOR";B$ 30 INPUT "WHAT'S THE AIR SPEED OF A SWALLOW";A NOTES This statement can only be executed within a program. BUGS None SEE ALSO GET GETKEY INPUT# PRINT