SIMPLE BASIC PROGRAM
- A Program to calculate 2 numbers
10 REM calculate 2 numbers
20 INPUT A, B
30 LET A = 5
40 LET B = 10
50 SUM = A + B
60 PRINT SUM
70 END
- Program to find average of 3 numbers
REM A program to find the average of 3 numbers
CLS
INPUT Number 1
INPUT Number 2
INPUT Number 3
TOTAL = Number 1 + Number 2 + Number 3
AVERAGE = TOTAL/3
PRINT TOTAL, AVERAGE
END
- Program to calculate the area, perimeter and length of the diagonal of a Rectangle whose length and width are given
You are viewing an excerpt of this lesson. Subscribing to the subject will give you access to the following:
- The complete lesson note and evaluation questions for this topic
- The complete lessons for the subject and class (First Term, Second Term & Third Term)
- Media-rich, interactive and gamified content
- End-of-lesson objective questions with detailed explanations to force mastery of content
- Simulated termly preparatory exams
- Discussion boards on all lessons and subjects
- Guaranteed learning
- Win great prizes for topping the Primacy Ebooks