#include<stdio.h>
int main(void)
{
float score[10]={0};
int i =0;
for(i=0;i<10;i++)
{
printf("请输入%d学生成绩",i+1);
scanf("%f",&score[i]);
}
float sum=0;
int maxid=0,minid =0;
for(i=0;i<10;i++)
{
sum+=score[i];
if(score[i]<60)
{
printf("下标为%d个学生成绩不合格,为%.1f\n",score[i]);
}
if(score[maxid]<score[i])
{
maxid=i;
}
if(score[minid]>score[i])
{
minid =i;
}
}
float avg=sum/10;
printf("==========结果汇总==========");
printf("zong%.1f\n,平均成绩%.1f",sum,avg);
printf("zuigao%.1f\n,xiabiao%.1f",score[maxid],maxid);
printf("zuidi%.1f\n,xiaobiao%.1f",score[minid],minid);
return 0;
}