C Program to find Given Character id Vowel or Not

C Program to find Given Character id Vowel or Not



#include
#include
main()
{
char ch;
clrscr();
printf("enter any character");
scanf("%c",&ch);

if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')

{
printf("%c is an vowel",ch);
}

else

{
printf("%c is not a vowel ",ch);
}

getch();

}








No comments:

Post a Comment