Requirement
The switch statement allows us to execute a block of code among many alternatives. You can do the same thing with the if...else statement. However, the syntax of the switch statement is much easier to read and write.
MIS Online computer course
May God Bless us MIS