‘while’ construct
- Loop control variable.
- Initialisation: before the loop is entered, the variable must be initialised.
- Testing: condition involving the loop control variable is tested before the start of each loop iteration; if condition is true, loop body is executed.
- Updating: loop control variable is updated during each iteration (usually at the beginning or the end of the loop body).