#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("enter an alphabet : ");
scanf("%c",& ch);
switch(ch)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
printf("Alphabet is a Vowel\n");
break;
default:
printf("Alphabetis a Consonant\n");
getch();
}
}
Output:
No comments:
Post a Comment