C Program to Check Input Alphabet is Vowel or not

      No Comments on C Program to Check Input Alphabet is Vowel or not
#include<stdio.h>
#include<conio.h>
void main()
{
char x;
clrscr();
printf("\nEnter Alphabet:- ");
scanf("%c",&x);
if(x=='a'||x=='e'||x=='i'||x=='o'||x=='u'||x=='A'||x=='E'||x=='I'||x=='O'||x=='U')
{
 printf("%c is a Vowel",x);
}
else
 {
 printf("%c is not a Vowel",x);
 }
getch();
}

OUTPUT:-

Leave a Reply

Your email address will not be published. Required fields are marked *