C Program to Check Whether a Character is a Vowel or Consonant

In this example, if…else statement is used to check whether an alphabet entered by the user is a vowel or a constant.

The five alphabets A, E, I, O and U are called vowels. All other alphabets except these 5 vowel letters are called consonants.

This program assumes that the user will always enter an alphabet character.

Example #1: Program to Check Vowel or consonant