Wednesday, November 11, 2009

C Program to determine whether a entered character is vowel or constant

#include
#include
void main()
char ch;
printf("enter any character");
scanf("%s",&ch);
if(ch==a||ch==e||ch==i||ch==o||ch==u)
{
printf("character is vowel");
}
else
{
printf("character is consotant");
}
getch();
}

No comments: