Solution
int main(){ char ch; int up,low; scanf("%s",&ch); low=(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u'); up=(ch=='A' || ch=='E' || ch=='O' || ch=='I' || ch=='U'); if(up || low) printf("vowel"); else printf("consonant"); return 0;}
No comments:
Post a Comment