写个1行完成判断的程序。
int main(int argc, char* argv[])
{
int intScore;
char cLevel;
printf("\nplease input an score:\n");
scanf("%d",&intScore);
cLevel = intScore < 60 ? 'E' : 'A' + 9 - (intScore-1)/10;
printf("score is %c\n", cLevel);
return 0;
}
[此贴子已经被作者于2006-5-14 13:13:10编辑过]
http://myajax95./