184k views
25 votes
What is the alogarithm for solving the average of five numbers

1 Answer

0 votes

Answer:

Start a loop

Ask for the user for a value

Add the value to a running sum

At end of loop, divide the running sum by 5 (or the total number of numbers entered by the user).

User Ilinykhma
by
4.4k points