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