我的这个为什么没有输出呀
#include <stdio.h>
#define N 10
int Sum(int score[])
{
int i;
int sum;
for(i=0;i<N;i++)
{
sum=sum+score[i];
}
return sum;
}
int Max(int score[])
{
int max=-1;
int i;
for(i=0;i<N;i++)
{
if(score[i]>max)
{
max=score[i];
}
}
return max;
}
int Min(int score[])
{
int min=100;
int i;
for(i=0;i<N;i++)
{
if(score[i]<min)
{
min=score[i];
}
}
return min;
}
float Ave(int score[])
{
return Sum(score)/N;
}
int Rank(int score[])
{
int i,j;
int temp;
for(i=9;i>=0;i--)
{
for(j=0;j<=i;j++)
{
if(score[j]<score[j+1])
{
temp=score[j];
score[j]=score[j+1];
score[j+1]=temp;
}
}
}
Rank(score);
}
int main()
{
int score[N]={67,98,75,63,82,79,81,91,66,84};
int sum=Sum(score);
int max=Max(score);
int min=Min(score);
float ave=Ave(score);
int rank=Rank(score);
printf("%d\n",sum);
printf("%d\n",max);
printf("%d\n",min);
printf("%f\n",ave);
printf("%d\n",rank);
return 0;
}