Program to check whether a entered letter is vowel or not using switch case statement



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


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.