WAP to input an alphabet and check whether it is vowel or consonant.
Answers
Answered by
3
Answer:
Logic to check vowels or consonants
Input a character from user. Store it in some variable say ch . Check conditions for vowel i.e. if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u') , then it is vowel. If character is alphabet but not vowel then it is consonant.
Similar questions