一、填空题
请补充main函数,该函数的功能是:计算三个学各科的平均分。
例如:当score=[N][M]={{78.5,84,83,65,63},{88,91.5,89,93,95},{72.5,65,56,75,77}}时,五科的平均分为:79.7 80.2 76.0 77.7 78.3。
仅在横线上填入所编写的若干表达式或语句,勿改动函数中的其它任何内容。
其源代码如下:
#include
#define N 3
#define M 5
main()
{
int i, j;
static float score[N][M] =
{
{78.5, 84, 83, 65, 63},
{88, 91.5, 89, 93, 95},
{72.5, 65, 56, 75, 77}
};
static float bb[N];
for (i=0; i
bb[i] = 0.0;
for (i=0; i<___1___; i++)
for (j=0; j<___2___; j++)
bb[j] += score[i][j];
for (i=0; i
printf("\nsubject%d\taverage=%5.1f", i+1, ___3___);
return 0;
}