wascreatedwithSpire.PDFfor.NET.\r100]\r!"o.
,.
o3i_,#$%&'j5(
,,\r_),c\r_,oiqci?hs4%de“stud”f;\r1.?@"\r2.ABC"\r#include"stdio.h"\r#include"conio.h"\rstructstudent\r{\rcharnum[6];\rcharname[8];\rintscore[3];\rfloatavr;\r}stu[5];\rmain()\r(\rintij,sum;\rFILE*fp;\rBinput*/\rfor(i=0;i<5;i++)\r(\rprintf(M\npleaseinputNo.%dscore:\n",i);\rprintf(MstuNo:");\rscanf("%sU,stu[i].num);\rprintf("name:\rscanf(u%s0,stu[i].name);\rsum=0;\rfor(j=0;j<3;j++)\r(\rprintf(nscore%d.",j+l);\rscanf(n%dn,&stu[i].score[j]);\rsum+=stu[i].score[j];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen("stud","wu);\rfor(i=0;i<5;i+4-)\rif(fwrite(&stu[i],sizeof(structstudent),1,fp)!=1)\rprintf(Hfilewriteerror\n");\rfclose(fp);\rgetch();EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r}