Program to check whether a entered letter is vowel or not using switch case statement
0
March 07, 2020
Explanation
Here Switch case plays a role of nested if else statement. It is an alternative way of if else statement. In this program, a variable c is declared to store alphabet entered by user. And now case is applied, if the given letter matches to the case then it enters to its block and print the given statement and then break the procedure. If the case is not matched it will check another case and if not matches all the cases then it will enter to in the default block.
Output
Tags
If you have any doubt, let me know...