lose(fp);\r)\r?\n100]\r<I»êI»ê3 ëìSíÊËÌK'7dD(îï»êðñòWëìSí)Æ\rÇ.\rQRSíó\dDzÆÇQR dÜàÑÌÙÚ"stud”\r1 .\n!\r2 .\n$%&\r'()*+,-\r#include "stdio-h"\rstruct student\r{ char num[6];\rchar name[8 J;\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('7n please input No. %d score:/n",i);\rprintf(nstuNn);\rscanf( n%sn, stu [i ]. num);\rprintf("name:n);\rscanf( "%s n,stu [i]. name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf("score %d."j+l);\rscanf("%d",&stu|i].score|j|);\rsum+=stu [i].score [j ];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen(,'stud'\"wn);\rfor(i=0;i<5;i4-+)\rif(fwrite(&stu[i],sizeof(struct student),l,fp)!=1)\rprintf("file write error/nn);\rfclose(fp);