Tuesday, August 23, 2016

Vowel And Consonant in C++

#include<iostream>
using namespace std;
int main()
{
char c;
cout<<"Enter an Alphabet ";
cin>>c;
if(c=='a'||c=='A'||c=='e'||c=='E'||c=='i'||c=='I'||c=='o'||c=='O'||c=='u'||c=='U')
{
cout<<c<<" is a Vowel";
}
else
{
cout<<c<<" is not a Vowel";
}
return 0;
}



Do Comment,Share :)
Sharing is Caring ;)

No comments:

Post a Comment