while is used to iterate through a sequence of statements. Iteration stops when the expression written within the while is false or a break statement is executed.
Example of ...
For loop is also for iteration.
syntax of for loop is
for (expr1; expr2; expr3)
The first expression (expr1) is evaluated (executed) once unconditionally at ...