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

What is the `ELSE` statement typically used for in combination with an `IF` statement?
To perform calculations.
To display output to the user.
To execute a block of code when the `IF` condition is false.
To define a new function.

Explanation

The `ELSE` block offers an alternative path if the condition is not met.

Comments (0)

Advertisement