C program to check whether a character is vowel or consonant
C program to check whether a character is a vowel or consonant: A user inputs a character, and we check whether it's a vowel or not. Both lower-case and upper-case are checked.
If a character isn't a vowel, it doesn't mean it's a consonant because it might be a digit or a special symbol
C program to check vowel or consonant using if else
In this program, we check whether a character is a vowel or consonant or punctuation or a symbol.
output:
Input a character
s
s is a consonant.
need an explanation for this answer? contact us directly to get an explanation for this answer