#include <stdio.h>
#define N 10
int sumScore(int score[])
{
int i, sum=0;
for(i=0;i<N;i++)
{
sum+=score[i];
}
printf("总和为:%d\n",sum);
return 0;
}float avgScore(int score[]){ int i; float avger,sum=0; for(i=0;i<N;i++) { sum+=score[i]; } avger=sum/10; printf("平均数为:%.1f\n",avger); return 0;}int maxScore(int score[]){ int i,temp=0; for(i=0;i<N;i++) { if(temp<score[i]) { temp=score[i]; } } printf("最大值为:%d\n",temp); return 0;}int minScore(int score[]){ int i,temp=score[0]; for(i=0;i<N;i++) { if(temp>score[i]) { temp=score[i]; } } printf("最小值为:%d\n",temp); return 0;}int ordScore(int score[]){ int j,n; for(n=N-1;n>=0;n--) { for(j=0;j<=n;j++) { if(score[j]>score[j+1]) { int temp; temp=score[j]; score[j]=score[j+1]; score[j+1]=temp; } } } int m; for(m=N;m>0;m--) { printf("%d\n",score[m]); } return 0;}int main(){ int score[N]={67,98,75,63,82,79,81,91,66,84}; sumScore(score); avgScore(score); maxScore(score); minScore(score); ordScore(score); return 0;}