A for loop is an example of iteration where the number of iterations is known in advance.

The condition of a while loop is checked before each .

In iteration, the number of iterations is not known in advance.

A do-while loop is an example of a loop with condition.