大佬,能耽误一点时间看看吗?
#include<stdio.h>#include<stdlib.h>
int main(void)
{
int i, j, s = 0, average, v[3], a[5][3];
printf("input socre:\n");
for (i = 0; i < 3; i++)
{
for (j = 0; j <= 4; j++)
{
scanf_s("%d", &a[i][j]);
s += a[i][j];
}
v[i] = s / 5;
s = 0;
}
average = (v[0] + v[1] + v[2]) / 3;
printf("math:%d\n clanguag:%d\n dbase:%d\n", v[0], v[1], v[2]);
printf("total:%d\n", average);
system("pause");
return 0;
}