|
REM
Abbreviation:
TYPE: Statement
FORMAT: REM [<remark>]
Action:The REM statement makes your programs more easily understood
when LISTed. It's a reminder to yourself to tell you what you
had in mind when you were writing each section of the program.
For instance, you might want to remember what a variable is used
for, or some other useful information. The REMark can be any text,
word, or character including the colon (:) or BASIC keywords.
The REM statement and anything following it on the same line-number
are ignored by BASIC, but REMarks are printed exactly as entered
when the program is listed. A REM statement can be referred to
by a GOTO or GOSUB
statement, and the execution of the program will continue with
the next higher program line having executable statements.
EXAMPLES of REM Statement:
10 REM CALCULATE AVERAGE VELOCITY
20 FOR X= 1 TO 20 :REM LOOP FOR TWENTY VALUES
30 SUM=SUM + VEL(X): NEXT
40 AVG=SUM/20
|