Subscribe For Free Updates!

We'll not spam mate! We promise.

Sunday, 4 August 2013

Displyaing Vowel and non vowel alphabets

#include<iostream.h>
#include<conio.h>

int main()
{
clrscr();
char alphabet;

cout<<"Enter any alphabet (a-z): ";
cin>>alphabet;
if(alphabet=='a')
cout<<"\nThe alphabet "<<alphabet<<" is Vowel";
else if(alphabet=='e')
cout<<"\nThe alphabet "<<alphabet<<" is Vowel";
else if(alphabet=='i')
cout<<"\nThe alphabet "<<alphabet<<" is Vowel";
else if(alphabet=='o')
cout<<"\nThe alphabet "<<alphabet<<" is Vowel";
else if(alphabet=='u')
cout<<"\nThe alphabet "<<alphabet<<" is Vowel";
else
cout<<"\nThe alphabet "<<alphabet<<" is not Vowel";
getch();
return 0;
}

Socializer Widget By CodingLovers
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment