求大佬指导
#include <stdio.h>
int all(int score)
{
printf("%d",score);
}
int high(score[])
{
int a;
int max=score[0];
for(a=1;a<10;a++)
{
if(score[a]>max)
max=score[a];
}
return max;
}
int low(score[])
{
int b;
int min=score[0];
for(b=1;b<10;b++)
{
if(score[b]<min)
min=score[b];
}
return min;
}
int paixu(score[])
{
int c,d;
for(c=9;c>=0;c--)
{
for(d=0;d<=c;d++)
{
if(score[d+1]<score[d])
{ int e;
e=score[d];
score[d]=score[d+1];
score[d+1]=e;
}
}
}
for(c=0;c<10,c++)
{
printf("%d",score[c])
}
}
int main()
{ int sum=0;
int score[10]={67,98,75,63,82,79,81,91,66,84};
int i;
for(i=0;i<10;i++)
{sum+=all(score[i]);}
printf("考试的总分为%d\n",sum);
printf("考试平均分为%d\n",sum/N);
printf("最高分为%d\n",high(score));
printf("最低分为%d\n",low(score));
printf("考试成绩降序排列为%d\n",paixu(score))
return 0;
}