大佬们,帮忙看看有什么问题
#include <stdio.h>
int main()
{
int N=10;
int score[N]={67,98,75,63,82,79,81,91,66,84};
int i;
int max=score[0];
int min=score[0];
int sum=0;
for(i=0;i<10;i++)
{
sum=sum+score[i];
if(max<score[i])
{
max=score[i];
}
if(min>score[i])
{
min=score[i];
}
}
double pjf=sum/10;
int tem,j,f,z;
for(f=0;f<8;f++)
{
for(j=0;j<9;j++)
{
tem=score[j];
if(score[j]<score[j+1])
{
score[j]=score[j+1];
score[j+1]=tem;
}
}
}
printf("考试总分=%d\n",sum);
printf("最高分=%d\n",max);
printf("最低分=%d\n",min);
printf("平均分=%f\n",pjf);
for(z=0;z<10;z++)
{
printf("考试成绩=%d\n",score[z]);
}
return 0;
}