题解 | #判断是元音还是辅音#
判断是元音还是辅音
http://www.nowcoder.com/practice/7eb4df4d52c44d309081509cf52ecbc4
#include<stdio.h>
int main(){
char c = 0;
while((c = getchar())!=EOF)
{
getchar();
switch(c){
case 'A':
case 'E':
case'I':
case 'O':
case 'U':
case'a':
case 'e':
case 'i':
case'o':
case 'u':
printf("Vowel\n");
break;
default :
printf("Consonant\n");
break;
}
}
return 0;
}
传音控股公司福利 317人发布