#include<stdio.h>
#include<conio.h>
void main()
{
char v;
clrscr();
printf("Enter any character");
scanf("%c",&v);
switch(v)
{
case 'a': case 'A':
printf("vowel");
break;
case 'e': case 'E':
printf("vowel");
break;
case 'i': case 'I':
printf("vowel");
break;
case 'o': case 'O':
printf("vowel");
break;
case 'u': case 'U':
printf("vowel");
break;
default:
printf("not a vowel");
}
getch();
}
No comments:
Post a Comment