Computer Science for IGCSE & O level - Programming (Section 6 - No. 50)

What is the primary function of the `IF` statement in programming?
To repeat a block of code.
To display output to the user.
To execute a block of code if a condition is true.
To define a new variable.

Explanation

`IF` statements control the flow of execution based on conditions.

Comments (0)

Advertisement