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

What is the purpose of the `ELSE` statement in an `IF` statement?
To define the main condition to be tested.
To specify the actions to be taken if the `IF` condition is false.
To end the `IF` statement.
To create a nested `IF` statement.

Explanation

`ELSE` executes code when the `IF` condition is not true.

Comments (0)

Advertisement