#defineM3\x0d\x0a#defineN4\x0d\x0avoidmain()\x0d\x0a{\x0d\x0aintstc[M][N]={70,72,73,70,78,90,80,91,72,80,60,70};\x0d\x0ainti,j,sum;\x0d\x0afloatavg[M],avgs[N];\x0d\x0afor(i=0;i
#define M 3
#define N 4
void main()
{
int stc[M][N]={70,72,73,70,78,90,80,91,72,80,60,70};
int i,j,sum;
float avg[M],avgs[N];
for(i=0;i
sum =0;
for(j=0;j
avg[i]=sum*1.0/M; //求每个学生课程分数平均成绩
}
for(i=0;i
sum =0;
for(j=0;j
avgs[i]=sum*1.0/M; //求每门课程分数平均成绩
}
}