Example 1: A BASIC program has the following
Line number(s) (b) Remark (REM) (c) Assignment (LET, INPUT, DATA) (d) Output statement (PRINT, WRITE) (e) Terminators (END, STOP) (f) Conditional statement (IF, ELSE, AND, OR, etc)
REM Program to write (or print) numbers 1 to 20.
20 A = 0; B = 0
30 INPUT a
40 IF A<1 THEN GO TO 30