mk90.basic.statements

Statement INPUT

Read one signed decimal integer from the keyboard.

Syntax

INPUT variable

Parameters

ParameterMeaning
variableDestination A–Z.

Behavior

Shows a question-mark prompt. Enter digits, optionally preceded by a minus sign, and confirm with BK. At least one digit is required; a bare BK does not complete input.

Accepted values range from −32767 to 32767. A digit which would overflow that range is ignored. Unsupported characters are ignored; a leading plus is not required. Keyboard waiting cooperates with native background tasks. SU+C cancels the program.

Example

10 INPUT A
20 PRINT "ENTERED ";A
30 END

Limits and diagnostics

One numeric variable only. No string input, prompt-list syntax, comma-separated input list or INPUT #file. Numeric backspace is not implemented; cancel and restart to correct a mistaken number.

Status-code reference.

See also

PRINT · END · Language syntax