题解 | #判断是元音还是辅音#
判断是元音还是辅音
https://www.nowcoder.com/practice/7eb4df4d52c44d309081509cf52ecbc4
#include <stdio.h> int main() { char a; char arr[10]={'a','A','E','e','U','u','o','O','i','I'}; while(scanf("%c",&a)==1) { if(a!='\n') { for(int i=0;i<10;i++) { if(a==arr[i]) { printf("Vowel\n"); break; } if(i==9) { printf("Consonant\n"); } } } } return 0; }#菜狗的解题#