+ 2
The if..else..if ladder allows you to execute a block code among many alternatives. If you are checking on the value of a single variable in if...else...if, it is better to use switch statement. The switch statement is often faster than nested if...else (not always). Also, the syntax of switch statement is cleaner and easy to understand.
4th Feb 2019, 3:35 AM
🩋FEATHER🩋
🩋FEATHER🩋 - avatar
0
are you from?
12th Apr 2019, 1:16 PM
Miralisher Mirxomidov
0
what is name?
12th Apr 2019, 1:17 PM
Miralisher Mirxomidov