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

When is the 'REPEAT...UNTIL' loop most appropriate to use?
When the loop has a fixed number of iterations.
When the loop should run at least once.
When the loop's condition must be met before any actions.
When the number of times the loop must repeat is based on user input.

Explanation

The REPEAT...UNTIL loop executes its code at least once before checking the condition to determine if it should continue.

Comments (0)

Advertisement