當前位置:編程學習大全網 - 編程軟體 - 平均差分編程

平均差分編程

# include & ltstdio.h & gt

雙平均= 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;

}

  • 上一篇:fanuc參數備份及恢復視頻
  • 下一篇:不同單片機的指令系統不壹樣嗎?
  • copyright 2024編程學習大全網