(c[i]);\r)\rfclose(fp);\r)\r?\n100]\r3@¶æ@¶æ3 çèLéÆÇÈC._;êëì¶æíîï,\rQçèLéðÀÁ\rJKLéñW_;uÀÁJK!_ØÜÍÈÕÖ“stud"\r1 .\n!"\r2 .\n#$%\r#inciude "stdio.h"\rstruct student\r{ char num[6];\rchar name[8];\rint score[3];\rfloat avr;\r} stu[5];\rmain()\r{int i,j,sum;.\rFILE *fp;\r/*input*/\rfor(i=0;i<5;i++)\r{ printf("\n please input No. %d score:\nn,i);\rprintfC^tuNo:'1);\rscanf(,,%s,,,stu[i].num);\rprintf("name:")&\rscanf( H%s U,stu [i ] .n ame);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf(Mscore %d.n,j+l);\rscanf("%dH,&stu[i].score|jl);\rsum+=stu[i].score |j];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen(nstud","wn);\rfbr(i=O;i<5;i++)\rif(fwrite(&stu[i],sizeof(struct student),l,fp)!= 1)\rprintf(nfile write error\nn);\rfclose(fp);