题解 | #判断是元音还是辅音#
判断是元音还是辅音
https://www.nowcoder.com/practice/7eb4df4d52c44d309081509cf52ecbc4
#include <stdio.h> int main() { char word = 0; while (scanf("%c", &word) !=EOF) { getchar(); switch (word) { case 'A': case 'E': case 'U': case 'I': case 'O': case 'a': case 'e': case 'u': case 'o': case 'i': { printf("Vowel\n"); break; } default: { printf("Consonant\n"); break; } } } return 0; }