Browse » Home
»
vowel program in c
» Program to demonstrate whether the given character is a vowel or not
Program to demonstrate whether the given character is a vowel or not
Program to check whether given character is vowel or not
#include <stdio.h>
#include <conio.h>
void main()
{
char ch;
clrscr();
printf("Enter Character : ");
scanf("%c",&ch);
if(ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E')
{
printf("\n%c is Vowel",ch);
}
else
{
printf("\n%c Is Not Vowel",ch);
}
getch();
}
Output :
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment