rfclose(fp);\r).\r@P ` 100W\rp??0=²ê=²ê3 ëìIíÌÍÎ@+]8(îï²êðñò,\rNëìIí)ÈÉGHIíóT]8rÈÉGH]ÞãÓÎÛÜ“stud”\r\r1 .P`\r2 .P`!"#\r#include "stdio.h1'\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);\rprintf(”stuNo:")$\rscanf(H%sM, );\rprintf(”name:")$\rscanf(,'%s,,,stu[i].name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf(nscore %d.”,j+1);\rscanf(H% d " , );\rsum+=stu[i].score[j];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen("stud,,$,wn);\rfor(i=0;i<5;i++)\rif(fw rite (& s tu [i],s iz e o f(),1 ,fp )!= 1 )\rprintfile write error\nH)$\rfclose(fp);\r)