下列程序用结构型数组存放下列四名学生的三门课成绩(整型),然后输出三门课程的名称和平均分(实型)。请填写程序中缺少的语句。
nameFORTRANCC++
zhao909885
qian859288
sun788066
li726471
voidmain()
{struct
{charname[5];intscore[3];
}s[4]={{"zhao",{90,98,85}},{"qian",{85,92,88}},{"sun",{78,80,66}},{"li",{72,64,71}}};
inti,J;
floatc[3]={0,0,0};
for(j=0;j<3;j++)
for(i=0;i<4;i++)
____
printf("averageofFORTRAN=%f\n",c[0]/4.0);
nff("averageofC=%f\n",C[1]/4.0);
printf("averageofC++=%f\n"c[2]/4.0);
}
c[j]+=s[i].score[j];/*利用循环将s[i]的score域按元素位置纵向求和*/