What is Vowel :
The alphabet {A,E,I,O,U} and {a,e,i,o,u} is known as vowels.
Other then this alphabet are known as consonant.
program-
#include< stdio.h>
int main() {
char s;
printf("Enter alphabet\n");
scanf("%c",&s);
switch(s)
{
case 'A':
printf("It is vowel");
break;
case 'E':
printf("It is vowel");
break;
case 'I':
printf("It is vowel");
break;
case 'O':
printf("It is vowel");
break;
case 'U':
printf("It is vowel");
break;
case 'a':
printf("It is vowel");
break;
case 'e':
printf("It is vowel");
break;
case 'i':
printf("It is vowel");
break;
case 'o':
printf("It is vowel");
break;
case 'u':
printf("It is vowel");
break;
default:
printf("It is consonant");
}
}
Enter alphabet
A
It is vowel
Enter alphabet
i
It is vowel
Enter alphabet
f
It is consonant