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