Iteration
•We can execute any algorithm with just “if” statements.
•But often we need to
repeat the same piece of code over
and over. Sometimes thousands
or millions of times. Writing the same
code with if statements alone in this case is impractical.
•Instead we use
iterative control structures. Iteration
is simply the process of doing something
over and over.
•
•