Repeating Terms
v Iteration is the repeated execution of a series of
statements in programming
v To perform iteration, programming languages include
special statements often called iteration statements
v There are two crucial components of all iterations:
o The statements that will be repeated -- called the loop body
o A test specifying when to repetition stops -- termination test
v 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