c program to print vowels or consonants using if-else

C program to print vowels or consonants using if-else. Check the vowel or consonant in C program. This program will help you to find the letter is vowel or consonant in C programming language. This program will check whether the letter is vowel letter like a,e,i,o,e

#include <stdio.h>
int main() 
{
char c;
int small, big;
printf("Enter the letter");
scanf("%c", &c);
small = (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u');
big = (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U');
if (small || big)
printf("%c is a vowel", c);
else
printf("%c is a consonant", c);
return 0;
}

Enter the letter g
g is a consonant