NEW

NEW erases all program lines from the active program area.

PRINT

Line # PRINT expression and/or character string

The PRINT statement is used to produce output on the display panel. The PRINT command will print one or several items - either expressions or strings. Each item in the list should be separated by a comma or a semicolon.

Example:

80PRINT NAME$; “IS COMING”

230PRINT “SUM=”; A+B+C

READ AND DATA

When it is necessary to enter a lot of information or data into the computer, using the INPUT statement can be very time consuming. To help out, use the READ and DATA commands.

Example:

10DATA 10,60,70,80,90

20READ A,B,C,D,E

30PRINT A;B;C;D;E

RUN

1060 70 80 90

The READ statement consists of a list of variable names with commas between each variable.

The DATA statement consists of a list of expressions separated by commas. These expressions can be either numeric or strings. The READ statement makes the computer look up the value of its variables from the DATA statement. When the computer goes to READ first it will assign the first expression from the DATA list. The next time it goes to READ it will assign the second value and so on. If the READ runs out of DATA you will get “? OUT OF DATA ERROR.”

63