#include <iostream>
using namespace std;
int main()
{
char a ;
cout <<"Enter a alphabet: "; cin >> a;
switch(a) {
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U': cout<<"It is a vowel" ;break;
default: cout <<"It is a consonant";break;
}
return 0;
}
0 Comments
Post a Comment