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
Program: A program is a set of instructions that the computer needs to execute a task or series of tasks.
Programming Language: This is a computer language that is a standard means of communication technique for expressing instructions to a computer. It is a language that specified instructions to be executed on a computer.
Programming: This is the act of writing programs. It is also the act of writing programs which instruct the computer on what to do, how to do and when to execute task.