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

Which type of loop is best suited for repeating a process until a specific condition is met?
FOR...TO...NEXT
WHILE...DO...ENDWHILE
CASE OF... OTHERWISE...ENDCASE
REPEAT...UNTIL

Explanation

REPEAT...UNTIL is specifically designed to repeat a block of code until a condition becomes true.

Comments (0)

Advertisement