#include <stdio.h>
int main()
{
char c;
printf("enter any alphabet: \n");
scanf("%c", &c);
if ((65 <= c && c <= 90) || (97 <= c && c <= 122))
{
switch (c)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
printf("its a vowel");
break;
default:
printf("its a consonant");
}
}
else
{
printf("its not an alphabet");
}
return 0;
}
No comments:
Post a Comment