include
int main()
{int n,i,j,s=0;
struct stud{
char id[10];
char name[10];
int score;
}stu[10];
scanf("%d",&n);
for(i=j=0;istu[j].score)j=i;
}
printf("The average score=%.2f\n",(float)s/n);
printf("The student who has the highest score is:%s %s %d",stu[j].id,stu[j].name,stu[j].score);
return 0;
}
追问有没有简单的
本回答被网友采纳