Write a program to accept a character and cheack the character is vowel or not in c language.
//----------- VOWEL PERSENT OR NOT ---------
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf(" ENTER THE CHARACTER ::");
scanf("%c",&ch);
if(ch=='a' && ch=='A' || ch=='i' && ch=='I' || ch=='e' && ch=='E' || ch=='O' && ch=='o'|| ch=='U'&& ch=='u')
{
printf(" VOWEL IS
PRESENT");
}
else
{
printf(" THIS IS NOT VOWEL");
}
getch();
}
Tags :
No comments:
Post a Comment