Computer Science for IGCSE & O level - Programming (Section 9 - No. 11)

What is the primary function of a loop in programming?
To define a variable's data type.
To execute a block of code repeatedly.
To create a user interface.
To perform mathematical operations.

Explanation

Loops are used to perform repetitive tasks, improving efficiency.

Comments (0)

Advertisement