0
Plz guys help me with switch case ! 😰like : how do I write if an alphabet is vowel or consonant with switch case
4 Respuestas
+ 1
You didn't ask a question
+ 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 ";
}
0
I guess I did ask now !