Computer Science for IGCSE & O level - Programming (Section 4 - No. 42)

What is the purpose of an 'IF' statement in programming?
To repeat a block of code.
To make decisions based on a condition.
To take input from the user.
To display output to the user.

Explanation

IF statements control which part of the code to run.

Comments (0)

Advertisement