Sunday, September 2, 2012

Program to find Vowel in given Character in C Program

Program to find Vowel in given Character in C Program


This is program to check given character is under vowel character or not using simple if condition.

/* Program For Detecting Vowel*/
#include<stdio.h>

int main()
{
char a;
printf("\nEnter character\n");
scanf("%c",&a);
if(a=='a'|| a=='e'|| a=='i'|| a=='o'|| a=='u' || a=='A'|| a=='E'|| a=='I'|| a=='O'|| a=='U')
{
  printf("\nThis Alphabet Is Vowel....!\n");
}
else
{ printf("\nThis is Not a Vowel..!\n");
}
return 0;


}

0 comments:

Post a Comment