#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;
}
#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;
}
0 comments:
Post a Comment