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

What is a key benefit of using nested statements (e.g., an IF statement inside another IF statement)?
It makes code less readable.
It reduces the program's performance.
It allows for more complex and detailed logic.
It is always more efficient than using separate statements.

Explanation

Nesting allows you to handle intricate conditional logic and decision-making processes.

Comments (0)

Advertisement