write a program to check vowel or consonant using switch statement
Answers
Answered by
3
Input an alphabet from user. Store it in some variable say ch.
Switch the value of ch.
For ch, there are 10 possibilities for vowel we need to check i.e. a, e, i, o, u, A, E, I, O and U.
Write all 10 possible cases for vowels and print "Vowel" for each case.
If alphabet is not vowel then add a default case and print "Consonant".
Answered by
0
Answer:
A E I O U
Explanation:
Similar questions