Tandy 1000 Basic Reference Manual page 290

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I BASIC Kevwords
Statement
REM
Inserts a remark line in a program.
REM instructs the computer to ignore the rest of the program
line, which lets you insert remarks in your program for docu-
mentation. Thus, when you look at a listing of your program, you
can quickly interpret it.
If
REM is used in
a
multistatement program line, it must be the
last statement in the line.
You may use an apostrophe
(' 1
as an abbreviation for REM.
Sample Program
1 1 0 D I M V < 2 0 )
1 2 0 REM C A L C U L A T E AVERAGE V E L O C I T Y
1 3 0 FOR 1 = 1 TO 2 0
1 4 0 SUM=SUM
+
V C I )
1 5 0 N E X T
I
OR
1 1 0
DIM
V ( 2 0 )
1 2 0
F O R 1 = 1 TO 2 0
' C A L C U L A T E AVERAGE V E L O C I T Y
1 3 0
S U M = S U M
+
V < I )
1 4 0 N E X T
I
288

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents