or(i=0;i<n;i++)\r{putc(c[i],fp);\rputchar(c[i]);\r)\rfclose(fp);\r100]\r>RST\nUST>3VW7-X\n!p\r8?YZ([\ST]\n^_\n`VW-X)\nab1\rcd-X\nef>7YZ@ab17cdY6Bg`p23“stud”4\r1.i\r2.\r#include"stdio.h"\rstructstudent\r{charnum[6];\rcharname[8J;\rintscore[3];\rfloatavr;\r}stuj<\rmain()\r{inti,j,sum;\rFILE*fp;\r/*input*/\rfor(i=0;i<5;i++)\r{printf(M\npleaseinputNo.%dscore:\n",i);\rprintf("stuNo:n);\rscanf(n%s",stufi].num);\rprintf("name:")<\rscanf(n%sn,stu[i].name);EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rsum=O;\rfor(j=0;j<3;j++)\r{printf(Mscore%d.",j+l);\rscanf(H%dn,&stu[i].score[j]);\rsum+=stu[i].score]];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen(',stud",,,w,');\rfor(i=0;i<5;i++)\rif(fwrite(&stu[i],sizeof(structstudent),l,fp)!=l)\rprintf(nfilewriteerror\nn);\rfclose(fp);