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