//C++ Program to accept a letter and check Whether a character is Vowel or Consonant.
#include<iostream>
using namespace std;
main()
{
char ch;
cout<<"Enter a Character to check whether it is a vowel or a Constant\n";
cin>>ch;
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
cout<<ch<<" is a Vowel.";
else
cout<<ch<<" is a Constant.";
}
No comments:
Post a Comment