#include <stdio.h>
#include <conio.h>
int main(){
char c;
printf("Enter a Character: ");
scanf("%c", &c);
if(c == 'a' || c == 'e' || c =='i' || c=='o' || c=='u' || c=='A'
|| c=='E' || c=='I' || c=='O' || c=='U'){
printf("%c is a Vowel\n", c);
} else {
printf("%c is a Consonant\n", c);
}
getch();
return 0;
}1 answer
Best answer
Was this answer helpful?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
Your answer
Log in or create a free account to answer this question.