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

Which loop structure is most suitable when the number of iterations is unknown and depends on a condition?
FOR...NEXT
REPEAT...UNTIL
WHILE...DO...ENDWHILE
All of the above

Explanation

WHILE loops continue iterating as long as a specific condition holds true.

Comments (0)

Advertisement