Iteration – cont. (iii)
There are two main types of “loops”.
Deterministic Loops
nHere, as in our earlier example, the number of
iterations execute is known in advance.
ne.g. Loop 10
times
Conditional Loop
nThe number of iterations is based on a condition.
ne.g. Loop until the total is greater than 100