REM

Line # REM text

REM is used to add comments in your program which are ignored when the program is RUN.

Example:

10REM**GUESSING GAME**
20REM TEST OF SORTING

RUN

RUN tells the computer to begin to perform your program beginning with the lowest statement number.

STOP ... CONT

Line # STOP

CONT

The STOP command halts the RUNNING of a program at that line. This is helpful for debugging. To CONTINUE at the next line after the STOP command, type CONT directly without a line number.

Example:

800 STOP

APPENDIX

EXAMPLE PROGRAMS

MOONWEIGHT

10 PRINT “Weight on the Moon”
20INPUT “Your Weight in Lbs.” ; WEIGHT
30MOONWEIGHT = WEIGHT /6
40PRINT “Your moon weight would”
50PRINT “be” ; MOONWEIGHT; “pounds.”
60PRINT “Wow”

RUN

65