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

When should you use a conditional statement (e.g., `IF` statement)?
To repeat a block of code multiple times.
To execute different code blocks based on a condition.
To declare a variable.
To define the main function.

Explanation

`IF` statements enable conditional execution based on whether a condition is true.

Comments (0)

Advertisement