#include<iostream.h> #include<conio.h> void main() { clrscr(); char x; cout<<"Please enter a character: "; cin>>x; if(x=='a'||x=='A'||x=='e'||x=='E'||x=='i'||x=='I'||x=='o'||x=='O'||x=='u'||x=='U') cout<<x<<" is a Vowel "; else cout<<x<<" is a consonant "; getch(); }
For Further Reading,
- Program: To find greatest Of Three Using nested If-else Statement
- Program: WAP To Check A Number is Armstrong or Not
- Program: To print Fibonacci series
- Program:To print the table of number in c++
- Program: Multiplication of Matrices
- Program:To check if a character is vowel or not (using if-else Statement)
1 comments:
Very informative article.Thank you author for posting this kind of article .
http://www.wikitechy.com/view-article/vowel-checking-program-in-c-with-example-and-explanation
Both are really good,
Cheers,
Venkat
Post a Comment