题解 | #判断是元音还是辅音#
判断是元音还是辅音
http://www.nowcoder.com/practice/7eb4df4d52c44d309081509cf52ecbc4
#include <stdio.h>
int main()
{
char a;
while(~scanf("%c",&a))
{
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;
}