//This is the Program to find the the entered character is consonant or vowel
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("\n\nEnter any Character:");
scanf("%c",&ch);
if((ch=='a')||(ch=='e')||(ch=='i')||(ch=='o')||(ch=='u'))
{
printf("\n\nThe Entered Character=%c is a Vowel",ch);
}
else if((ch=='A')||(ch=='E')||(ch=='I')||(ch=='O')||(ch=='U'))
{
printf("\n\nThe Entered Character=%c is a Vowel",ch);
}
else
{
printf("\n\nThe Entered Character=%c is a Consonant",ch);
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("\n\nEnter any Character:");
scanf("%c",&ch);
if((ch=='a')||(ch=='e')||(ch=='i')||(ch=='o')||(ch=='u'))
{
printf("\n\nThe Entered Character=%c is a Vowel",ch);
}
else if((ch=='A')||(ch=='E')||(ch=='I')||(ch=='O')||(ch=='U'))
{
printf("\n\nThe Entered Character=%c is a Vowel",ch);
}
else
{
printf("\n\nThe Entered Character=%c is a Consonant",ch);
}
getch();
}