There are 26 alphabets in our English language. Out of which, 21 are consonants and five are vowels. The five vowels are A,E,I,O,U.
In this article, we will write an algorithm to find whether an input character is Vowel or Not.
In the above algorithm,
1. We first declare a variable ch of character datatype.
2. Then we read one character from the user and store it in a variable "ch"
3. Then we compare "ch" with the vowels in both upper and lower case. If it matches we print "vowel" else we print "Consonant".
Our Quiz prepared by Experts Helps you identify your knowledge in Algorithms. Everyone should atleast attempt this Quiz Once.
Thank you so much for uploading this.