History, asked by Anonymous, 5 months ago

write a program to check vowel or consonant using switch statement​

Answers

Answered by anukrititiwari04
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 dakshgamer35
0

Answer:

A E I O U

Explanation:

Similar questions