Basic Programming Language
Basic Programming Language
PROGRAMMING
LANGUAGE
Ifunanya Iloh
Objective
s
At the end of this lesson, students should be able to;
1. LINE numbers
2. REM Statement (Remark)
3. ASSIGNMENT Statement
4. INPUT Statement
5. LET Statement
6. DATA Statement
7. OUTPUT Statement
8. PROGRAM TERMINATOR (END, STOP)
Structure of BASIC program
1. 1. One instruction or statement per line
2. Each line must begin with a line number
3. Line numbers are unsigned positive integers
4. Line number should increase in steps of 10 to allow for insertion
of extra lines during program modification.
Examples:
Write a program to calculate the average of x,y and z as 46, 73
and 114 respectively.
10 x = 46
20 y = 73
30 z = 114
40 AVERAGE = (x+y+z)/3
50 END
RUN