Search This Blog

C Program Check Given Alphabet Is Vowel Or Consonant

C Program Check Given Alphabet Is Vowel Or Consonant :
//C Program Check Given Alphabet Is Vowel Or Consonant

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\n\n Enter any one Alphabet:- ");
ch=getche();
if(ch=='A'||ch=='a')
printf("\n this is a vowel");
else if(ch=='E'||ch=='e')
printf("\n this is a vowel");
else if(ch=='I'||ch=='i')
printf("\n this is a vowel");
else if(ch=='O'||ch=='o')
printf("\n this is a vowel");
else if(ch=='U'||ch=='u')
printf("\n this is a vowel");
else
printf("\n this is a consonant");
getch();
}
OUTPUT
C Program Check Given Alphabet Is Vowel Or Consonant

No comments:

Post a Comment