First page Back Continue Last page Overview Graphics
Input/Output Statements
In General
- Three Statements READ, PRINT, and OUT
- OUT displays text
- PRINT displays the evaluated value of an expression
- READ reads from the keyboard until enter is pressed.
- All non numeric characters are ignored
- If variable is floating point a decimal point is expected
- Otherwise it is ignored
XML
input::= "READ" variable.
output::="PRINT" expression | "OUT" text.
Examples
READ Q
OUT Hi the Value of Q is
PRINT Q
Notes: