题解 | 判断是元音还是辅音
#include <stdio.h>
#include <ctype.h>
// 使用大小转化减少判断
int main() {
char ch;
while(scanf("%c\n",&ch)!=EOF){
char ch_n = tolower(ch);
if (ch_n == 'a' || ch_n == 'e' || ch_n == 'i' || ch_n == 'o' || ch_n == 'u'){
printf("Vowel\n");
}
else{
printf("Consonant\n");
}
}
return 0;
}