how do you average five numbers in qbasic
Answers
Answered by
0
Answer:
The simplest way might be for you to supply the five numbers. This works in Qbasic: PRINT (2 + 3 + 5 + 7 + 11)/5.
...
For something more advanced, you could use:
NumberOfNumbers = 5.
Sum = 0.
Average = 0.
FOR i = 1 TO NumberOfNumbers.
PRINT "Enter Number."
INPUT Number.
LET Sum = Sum + Number.
NEXT i.
Answered by
0
Well
It's easy
Below is the program
CLS
INPUT"ENTER THE NUMBER";A
INPUT"ENTER THE NUMBER";B
INPUT"ENTER THE NUMBER";C
INPUT"ENTER THE NUMBER";D
INPUT"ENTER THE NUMBER";E
PRINT A+B+C+D+E/5
END
Mark as Brainliest
Similar questions