//Find the entered value is Vowel or consonant using if-else
#include<stdio.h>
int main()
{
char value;
int l,u;
printf("Enter value=");
scanf("%c",&value);
l=(value=='a'||value=='e'||value=='i'||value=='o'||value=='u');
u=(value=='A'||value=='E'||value=='I'||value=='O'||value=='U');
if(l||u)
printf("\nIts Vowel");
else
printf("\nIts consonant");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: