Show vowel character
This program show that enter character is vowel or not vowel
========================================================================
#include<iostream>
using namespace std;
main()
{
char ch;
cout<<"Enter a character\n";
cin>>ch;
if(ch=='a'||ch=='A'||ch=='e'||ch=='E'||ch=='i'||ch=='I'||ch=='o'||ch=='O'||ch=='u'||ch=='U')
cout<<ch<<" is a vowel.\n";
else
cout<<ch<<"is not a vowel.\n";
}
========================================================================
0 comments:
Post a Comment