write a program in QBASIC todisplay the first 10 terms of the series 144, 121,100
Answers
Answered by
1
Answer:
Qbasic Program to calculate the average of three numbers
DECLARE FUNCTION AVERAGE (A, B, C)
CLS.
INPUT “ENTER FIRST NUMBER”; A.
INPUT “ENTER SECOND NUMBER”; B.
INPUT “ENTER THIRD NUMBER”; C.
PRINT “AVERAGE OF THREE NUMBERS”; AVERAGE (A, B, C)
FUNCTION AVERAGE (A, B, C)
AVERAGE = (A + B + C) / 3.
Similar questions