0

Plz guys help me with switch case ! 😰like : how do I write if an alphabet is vowel or consonant with switch case

15th Jul 2017, 4:39 PM
Shanu Pathak
4 Answers
+ 1
You didn't ask a question
15th Jul 2017, 4:47 PM
aklex
aklex - avatar
+ 1
char a; cin >> a; switch (a) { case 'a': cout << "vowel "; break; case 'e': cout <<"vowel"; break; case 'i': cout << "vowel "; break; case 'o': cout << "vowel"; break; case 'u': cout << "vowel"; break; default: cout <<" consonants "; }
15th Jul 2017, 6:57 PM
‎ ‏‏‎Anonymous Guy
0
I guess I did ask now !
15th Jul 2017, 4:50 PM
Shanu Pathak