Posts
Showing posts from July, 2018
C++ program to check alphabet is vowel or consonant .
- Get link
- X
- Other Apps
Vowel : j e.g: A,a,E,e,I,i,O,o,U,u and consonant other than this alphabets. A #include <iostream> using namespace std; int main() { int x=1; char user; while(x!=0) { cout<<"Enter a character for chek alphabate or number and then check vowel or consunent: "; cin>>user; if((user>='a'&& user<='z') || (user>='A' && user<='Z')) { cout<<" it is an alphabet"<<"\n"; if(user=='a' || user=='e' || user=='i' || user=='o' || user=='u') { cout<<"You enter vowel in small alphabate"<<"\n\n"; } else if(user=='A' || user=='E' || user=='I' || user=='U' || user=='U') { cout<<"You enter vowel in...