208k views
4 votes
Explain what iteration is and why we need it in code

1 Answer

2 votes

Answer:

Step-by-step explanation:

When a cycle of instructions is carried out in a repeated manner, it is called a loop. It is the replication of a process in a computer program, commonly executed with the use of loops. Iteration is essential as it lets a programmer streamline a design by declaring that definite steps will be repeated.