19. Write a C program to input any alphabet and check whether it is vowel or consonant.
Solution :-
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
printf("Enter the Character :-");
scanf("%s",&ch);
if(ch=='a'|| ch =='e' || ch =='i'|| ch =='o'|| ch =='u'|| ch=='A'|| ch=='E' || ch=='I' || ch=='O'|| ch=='U')
{
printf(" The Charater you Entered is Vowel....");
}
else
{
printf("The Character you Enterted is Constant..... ");
}
getch();
}
Output :-