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

What is the purpose of an `IF...ELSE IF...ELSE` statement?
To execute a block of code only if a condition is true.
To check for multiple conditions and execute different code blocks based on which condition is met.
To repeat a block of code.
To define a single conditional statement.

Explanation

This allows for checking multiple conditions sequentially.

Comments (0)

Advertisement