/*把百分制成績(jī)轉(zhuǎn)換為ABC等級(jí)制*/在C語(yǔ)言的程序中如何編寫?
提問人:楊紫紅發(fā)布時(shí)間:2020-11-17
#include"stdio.h"
void main()
{
int n,m;
printf("請(qǐng)輸入分?jǐn)?shù):\n");
scanf("%d",&m);
switch(m/10)
{
case 10:
case 9:printf("A\n");
break;
case 8:printf("B\n");
break;
case 7:printf("C\n");
break;
case 6:printf("及格\n");
break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0:printf("不及格!\n");
}
}
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>