Write a program that inputs a character from the user and checks whether it is a vowel or consonant

Write a program that inputs a character from the user and checks whether it is a vowel or consonant



#include<iostream>
using namespace std;
int main()
{
char c;
int V,v;
cout<<"\t * Vowel or Consonant Checker * "<<endl;
cout<<"\n";
cout<<"Enter the Character you want to check"<<endl;
cin>>c;
v=(c=='a' || c=='e' || c=='i' || c=='o' || c=='u');
V=(c=='A' || c=='E' || c=='I' || c=='O' || c=='U');
if (V || v)
{
cout<<"The entered Character is a Vowel"<<endl;
}
else
{
cout<<"The entered Character is not a Vowel"<<endl;
}
}


Write a program that inputs a character from the user and checks whether it is a vowel or consonant