雙平均= 0;//平均分
int good = 0;//好學生數量
int bad = 0;//學生人數少
雙倍積分[10];//分數
無效校準()
{
int I = 0;
for(I = 0;我& lt10;i++)
{
if(score[I]& gt;90)好++;
if(score[I]& lt;60)壞++的;
平均+=分數[I];
}
平均值/= 10;
}
int main()
{
int I = 0;
while(1)
{
平均值= 0;
好= 0;
bad = 0;
printf(" score(10):");
for(I = 0;我& lt10;i++)
{
scanf("%lf ",score+I);
}
cal();//統計數據
printf("平均:%f\n好:%d\n壞:%d\n\n ",平均,好,壞);
}
返回0;
}