Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 9 - No. 21)

What does the WHILE...DO...ENDWHILE loop structure do?
It repeats the set of actions until a specified condition is met.
It performs an action based on a single conditional check.
It iterates a fixed number of times based on a counter.
It checks the condition at the beginning and continues to execute the loop's actions while the condition is TRUE.

Explanation

The WHILE loop's condition is checked at the beginning, and the loop body is executed while the condition is true.

Comments (0)

Advertisement