Computer Science for IGCSE & O level - Programming (Section 8 - No. 20)

What is the primary purpose of an `IF` statement in a programming language?
To declare variables.
To perform arithmetic calculations.
To execute a block of code conditionally.
To repeat a block of code.

Explanation

The IF statement enables conditional execution of code.

Comments (0)

Advertisement