Write a function that gets a character and determine whether it is a vowel (i.e., a, e, i, o, u) or consonant (remaining alphabet other than vowels)
Method 1:
Enter a character
a
a is a vowel
Method 1:
1. Get the character in a variable & compare it with 'a', 'e', 'i', 'o', 'u'.Implementation:
2. If it matches with any of the vowels, print the entered character is a vowel
3. Else print the entered character is a consonant.
Output:
Enter a character
a
a is a vowel