Write c program to check character is vowel or not |check character is vowel or not if else statement in c programming //a,e,i,o,u
#include<stdio.h>
int main()
{
char ch;
printf("enter a character to check it is vowel or not");
scanf("%c",&ch);
if(ch=='a'||ch=='A'||ch=='e'||ch=='E'||ch=='o'||ch=='O'||ch=='i'||ch=='I'||ch=='u'||ch=='U')
{
printf("entered character is vowel %c",ch);
}
else
{
printf("entered character is not vowel %c ",ch);
}
}