Write an algorithm for finding the average of five numbers
INITIALIZE SUM and COUNTER
WHILE COUNTER < 5
INPUT NUMBER
ADD NUMBER to SUM
INCREMENT COUNTER
ENDWHILE
CALCULATE AVERAGE = SUM / 5
PRINT AVERAGE
STOP
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment