Write a program in QBasic to input three numbers from user and find out the average of
them
please answer fast
Answers
Answered by
0
Answer:
DECLARE FUNCTION AVERAGE (A,B,C) CLS
INPUT "ENTER FIRST NUMBER"; A
INPUT "ENTER SECOND NUMBER";B
INPUT "ENTER THIRD NUMBER";C
INPUT "AVERAGE OF THREE NUMBERS"; AVERAGE(A,B,C)
FUNCTION AVERAGE (A,B,C)
AVERAGE = (A+B+C) / 3
END FUNCTION.
Similar questions