Repeating Terms
Iteration is the repeated execution of a series of statements in programming
To perform iteration, programming languages include special statements often called iteration statements
There are two crucial components of all iterations:
- The statements that will be repeated -- called the loop body
- A test specifying when to repetition stops -- termination test
Additionally, loops typically have at least one variable that is explicitly changed “inside” the loop -- this is called the iteration variable
Some value must change between consecutive iterations, or else the loop will never terminate … it is an infinite loop