Program to cheque enter character is vowel or not in c-language
#include<stdio.h>
int main()
{
char ch;
printf("Enter the character\n");
scanf("%c",&ch);
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
{
printf("Enter character is vowel");
}
else
{
printf("Enter character is not vowel");
}
}
OUTPUT
Enter the character
E
Enter character is vowel
Visit Homepage
Comments
Post a Comment