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

int e l 4.10 DESCRIPTION OF STATEMENTS STATEMENT: END MODE: RUN TYPE: CONTROL The END STATEMENT terminates program execution. The continue command, CONT will not operate it the END STATEMENT is used to terminate execution (i.e., a CAN'T CONTINUE ERROR will be printed to the console). The last statement in an MCS BASIC-52 program will automatically terminate program execution if no END STATEMENT is used. EXAMPLES: LAST STATEMENT TERMINATION END STATEMENT TERMINATION >1O FOR I=1 TO 4 >1O FOR I=1 TO 4 >20 PRINT I >20 GOSUB 100 >30 NEXT I >30 NEXT I >RUN >40 END >100 PRINT I 1 >110 RETURN 2 >RUN 3 4 1 2 READY 3 > 4 READY > VARIATIONS: None - 38 -