);\r)\rfclose(fp);\rp ? 100]\r?MZÉó¢ÉóM3 ôõ#nöÔÕÖ(´V'a÷øùÉóúûü,\rrôõnöýÑ\rlmnöþxM#'aÑ#lm?'æ¬ÛÖãä“stud”\r1 .@P`p?\r2 .@P\n?\r#include "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:\nH,i);\rprintf("stuNo:'^);\rscanf( n%s M,stu [i ]. num);\rprintfCname:");\rscanf( "%s ”,stu[i ].name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf(''score %d.n,j+l);\rscanf(u%d",&stu|i].score (j]);\rsum+=stu[i].score[j];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen(',studM,',wn);\rfor(i=0;i<5;i++)\rif(fwrite(&stu[i],sizeof(struct student),l,fp)!= 1)\rprintf("file write error\nn);\rfclose(fp);