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