本帖最后由 hou 于 2014-6-20 19:41 编辑
[mw_shl_code=c,true]#include <stdio.h>
#include <stdlib.h>
int main()
{
int x; scanf("%d",&x);
if(x<=100&&x>=0)
{
if(x>=90)
printf("A\n");
else if(x>=80&&x<90)
printf("B\n");
else if(x>=70&&x<80)
printf("C\n");
else if(x>=60&&x<70)
printf("D\n");
else
printf("E\n");
}
else
printf("is not a score\n");
system("pause");
return 0;
}
[/mw_shl_code]
|