s created with Spire.PDF for .NET.\r{int i, j, max, maxi, sum;\rfloat average;\rfor(i=0;i<5;i++)\r{printf("number");\rscanf stu[i]. num);\rprintf("name");\rscanf stu[i]. name);\rfor(j=0; j<3; j++)\r{printf("\nscore\n");\rs c a n f & s t u [ i ] . score[j]);\r)\r)\raverage=0;\rmax=0;\rmaxi=0;\rfor(i=0;i<5;i++)\r{sum=0;\rfor(j=0;j<3;j++)\rsum+=stu[i]. score[j];\rstu[i]. avr=sum/3. 0;\raverage+=stu[i]. avr;\rif(sum>max)\r{max=sum;\rmaxi=i;\r)\r)\raverage/=5;\rprintf(^number name score1 score2 score3 averagePP )\rfor(i=0;i<5;i++)\r{printf ("%8s%10s”, stu[i]. num, stu[i]. name);\rfor(j=0;j<3;j++)\rprintf("%7d”, stu[i]. score[j]);\rprintf C%6. 2f\n”, stu[i]. avr);\r)\rprintf (^average=%5. 2f\n”, average);\rprintf (*The best student is %s, sum=%d\n”, stu[maxi], name, max);\r}