void main()
{
float iscore[SIZE]={0},max,least;
int iindex=0,fail=0;
printf("请输入学生的成绩: ",iindex);
for(iindex=0;iindex
max=least=iscore[0];
for(iindex=0;iindex
if(max
if(least>iscore[iindex])
least=iscore[iindex];
if(iscore[iindex]<60)
{
fail=fail+1;
}
}
printf("最高分: %f,最低分: %f",max,least);
printf("不及格的人数: %d,占总人数的 %1f\n",fail,(float)fail/(float)10);
}