C++ program to check whether a character is vowel or consonant

C++ program to check whether a character is vowel or consonant
Five alphabets a, e, i, o and u are known as vowels.
All other alphabets except these 5 alphabets are known are consonants.
If statement is used to find if the character is a, e, i, o or u (both in upper case as well as lower case).
If it is any of these, it is a vowel. Otherwise, it is a consonant.



For the better understanding of this program you have to know more about the following C++ programming topic(s) :
C++ Flow Control
C++ Function

The algorithm is to check Whether a character is vowel or consonant is:

The input alphabet evaluates to true if input alphabet is a lowercase/uppercase vowel and false for any other character.

Example#6.0: C++ program to check Whether a character is vowel or consonant


Output

Enter an alphabet: i
i is a Vowel.

Post a Comment

Thank you for vising

Previous Post Next Post