请补充main函数,该函数的功能是:计算三名学生学科的平均成绩。
例如,当score[N][M]={{83.5,82,86,65,67},{80,91.5,84, 99,95},{90,95,86,95,97}时,五门学科的平均分为:84.5 89.5 85.3 86.3 86.3。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。
试题程序:
include<stdio, h>
define N 3
define M 5
main ()
{
int i,j;
static float score [N] [M]= { {83.5, 82,86,
65,67}, {80,91.5,84,99,95},
{90, 95, 86, 95, 97} };
static float bb[N];
clrscr ();
for (i=0; i<M; i++)
bb[i]=0.0;
for(i=0;i<【 】;i++)
{
for(j=0;j<【 】;j++)
bb [j]+=score [i] [j];
}
for (i=0; i<M; i++)
print f (" \nsubject%d\taverage=%5.1 f",
i+1,【 】);
return 0;
}