Answer to Question #204231 in C++ for Divine

Question #204231

Write an algorithm for finding the average of five numbers


1
Expert's answer
2021-06-07T17:21:04-0400

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?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog