To Find Weather Entered Character Is Vowel Or Not
#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
printf("enter the character");
scanf("%c",&ch);
if(ch=='a'||ch=='e'||ch=='o'||ch=='i'||ch=='u')
{
printf("vowel");
}
else
{
printf("consonent");
}
getch();
}
Comments
Post a Comment