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

What is the purpose of a WHILE loop?
To repeat statements a fixed number of times.
To repeat statements as long as a condition is true.
To select between different choices.
To input data from a user.

Explanation

A WHILE loop continues repeating its body as long as the condition is true.

Comments (0)

Advertisement