loops occur when the condition of a while loop is always true.

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

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

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