#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
clrscr();
printf("Enter any character:> ");
scanf("%c", &ch);
switch(ch)
{
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
case 'I':
case 'o':
case 'O':
case 'u':
case 'U':
printf("\n%c is Vowel.", ch);
break;
default:
{
printf("\n%c is not a Vowel.", ch);
break;
}
}
getch();
return 0;
}
Output:
Enter any character: u
u is Vowel.