intel MCS BASIC-52 — Intel MCS BASIC-52 Versions 1 & 1.1 Operating and Reference Manual PDF

int e l 4.6 DESCRIPTION OF STATEMENTS STATEMENTS: DATA -- READ -- RESTORE MODE: RUN TYPE: ASSIGNMENT DATA DATA specifies expressions that may be retrieved by a READ STATEMENT. If multiple expressions per line are used, they MUST be separated by a comma. READ READ retrieves the expressions that are specified in the DATA STATEMENT and assigns the value of the expression to the variable in the READ STATEMENT. The READ STATEMENT MUST ALWAYS be followed by one or more variables. If more than one variable follows a READ STATEMENT, they MUST be separated by a comma. RESTORE RESTORE "resets" the internal read pointer back to the beginning of the data so that it may be read again. EXAMPLE:

>10 FOR I=1 TO 3 >20 READ A,B >30 RRINT A,B >40 NEXT I >50 RESTORE >60 READ A,B >70 PRINT A,B >80 DATA 10,20,10/2,20/2,SIN(PI),COS(PI) >RUN 10 2O 5 10 0 -1 10 20 VARIATIONS: None. - 33 -