#include
int main()
{
float shuxue, yuewen, wuli, huaxue;
int select;
shuxue = 80.5;
yuewen = 59;
wuli =98;
huaxue =100;
scanf("%d",&select);
if(select==1)
{
printf("数学成绩是: %.2f\n", shuxue);
return 0;
}
else if(select==2)
{
printf("语文成绩是: %.2f\n",yuewen);
return 0;
}
else if(select==3)
{
printf("物理成绩是: %.2f\n", wuli);
return 0;
}
else if(select==4)
{
printf("化学成绩是:%.2f\n",huaxue);
return 0;
}
else
{
printf("总成绩是: 337.5\n");
return 0;
}
return 0;
}
阅读(1490) | 评论(0) | 转发(0) |