//Program to check whether given alphabet is vowel or not using If Else statement.
#include<stdio.h>
#include<conio.h>
void main()
{
char c;
printf("\n Enter the alphabet:");
scanf("%s",&c);
if(c=='a'|| c=='e'|| c=='i'|| c=='o'|| c=='u')
{
printf("\n alphabet is vowel");
}
else
{
printf("\n alphabet is not vowel");
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
char c;
printf("\n Enter the alphabet:");
scanf("%s",&c);
if(c=='a'|| c=='e'|| c=='i'|| c=='o'|| c=='u')
{
printf("\n alphabet is vowel");
}
else
{
printf("\n alphabet is not vowel");
}
getch();
}