News

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.
Iteration is the process of repeating steps. For example, a very simple algorithm for eating breakfast ... because when a program iterates it ‘loops’ to an earlier step.