10. 弌舒于仆亠仆亳亠 if 亳 switch
10
1. Check the Testing Expression:
if-then-else statement can test expressions.
2. Switch better for Multi way branching.
3. if-else better for boolean values.
4. Speed:
switch statement might prove to be faster.
5. Clarity in readability:
A switch looks much cleaner.
switch vs if else