Skip to content
Sign in
Computer

Which branching statement can easily handle complicated nested decisions?

Tap an option to check the answer. You can also press A–D.

Explanation
switch handles multiple discrete values of a variable more clearly than nested if-else statements. It improves readability and structure in complicated decision-making scenarios.