This algorithm would allow five numbers to be inputted and would work out the total. A count-controlled loop would be used because it is known, in advance, how many times the algorithm needs to loop.
Condition-controlled loops have a condition that is tested at the start of the iteration to determine whether or not the iteration should occur. With each iteration, the condition is tested again.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results