REM
Statement
I
Inserts a remark line
in
a program.
REM instructs the computer to ignore the rest of the program line.
This allows you
to
insert remarks into your program for
documentation. Then, when
you
look at a listing of your program, or
someone else does, it will
be
easier to figure it out.
If
REM is used
in
a multi-statement program line, it must
be
the last
statement
in
the line.
You
may use
an
apostrophe ( , )
as
an
abbreviation for REM.
Sample Program
110
DIM
l,I(20)
120
REM
CALCULATE
AVERAGE
VELOCITY
130
FOR
1=1
TO
20
140
SUM=SUM
+
V(I)
OR
110
DIM
l)(20)
120
FOR
1=1
TO
20
130
SUM=SUM
+
V(I)
140
NE)<T
I
2-150
'CALCULATE
AVERAGE
VELOCITY