SIMPLE BASIC PROGRAMS
- 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” A, B
70 END
- Program to find average of 3 numbers
REM A program to calculate the total and average of 3 numbers
CLS
INPUT Number1
INPUT Number2
INPUT Number3
TOTAL = Number1 + Number2 + Number3
AVERAGE = TOTAL/3
PRINT TOTAL, AVERAGE
END
- Program to calculate the area, perimeter and length of the diagonal of a triangle 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