What is Vowel :
The alphabet {A,E,I,O,U} and {a,e,i,o,u} is known as vowels.
Other then this alphabet are known as consonant.
program:
#include < iostream>
using namespace std;
int main()
{
char s;
cout<<"Enter any Character"<< endl;
cin>>s;
if(s=='A'||s=='E'|| s=='I' || s=='O' || s=='U'|| s=='a'||s=='e'|| s=='i' || s=='o' || s=='u')
cout<<"Character is vowel";
else
cout<<"Character is not vowel";
return 0;
}
Enter any character
O
Character is vowel
Enter any character
k
Character is not vowel