#include <stdio.h> int main() { char ch; //使用scanf情况下缓冲区有残留Enter while (scanf("%c",&ch)!=EOF) { getchar(); //解决回车键残留问题 if (ch=='a'||ch=='A'||ch=='i'||ch=='I'||ch=='o'||ch=='O'||ch=='u'||ch=='U'||ch=='e'||ch=='E') { printf("Vowel\n"); } else { printf("Consonant\n"); } } return 0; }