Program
code
#include
<stdio.h>
#include
<conio.h>
void
main()
{
char
letter;
clrscr();
printf("Please
input an alphabet.\n");
scanf("%c",&letter);
if
((letter=='a')||(letter=='e')||(letter=='i')||(letter=='o')||(letter=='u'))
printf("This
alphabet is a vowel.\n");
else
printf("This
alphabet is a consonant.\n");
getch();
}
Example
of output
Please
input an alphabet.
n
This
alphabet is a consonant.
No comments:
Post a Comment
Please write here, your opinion about this C program