AT&T 6300 Programmer's Manual page 434

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

READ
Statement
Example 1
Example 2
7-278
To reread DATA statements from the start,
use the RESTORE statement (see
"RESTORE" later in this chapter).
80 FOR 1=1 TO 10
90 READ A(I)
100 NEXT I
110 DATA 3.08,5.19,3.12,3.98,4.24
120 DATA 5.08,5.55,4.00,3.16,3.37
This program segment READs the values
from the DATA statements into the array A.
After execution, the value of A(l) will be 3.08,
and so on.
10 PRINT "CITY", "STATE", " ZIP"
20 READ CS,SS,Z
30 DATA "DENVER,", COLORADO, 80211
40 PRINT CS,SS,Z
Ok
RUN
CITY
STATE
ZIP
DENVER, COLORADO 80211
Ok
This program READs string and numeric data
from the DATA statement in line 30.

Advertisement

Table of Contents
loading

Table of Contents