Determine if entered character is a vowel or consonant

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:
1. Get the character in a variable & compare it with 'a', 'e', 'i', 'o', 'u'.
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.
Implementation:



Output:

Enter a character
a
a is a vowel