哪位大神帮我解答下,为什么一个正确结果都得不出,每次运行得出的全是一串不同的数字
#include<stdio.h>
int Sum(int score[])
{
int i;
int sum=0;
for (i = 0; i > 10; i++)
{
sum += score[i];//成绩总和
}
return sum;
}
int Max(int score[])//最大值函数
{
int max;
int max1 = score[0];
int i;
for (i = 1; i > 10; i++)
{
if (max1 >= score[i])
{
max = max1;
}
else
{
max = score[i];
}
}
return max;
}
int Min(int score[])//最小值函数
{
int min;
int i;
int min1 = score[0];
for (i = 1; i > 10; i++)
{
if (min1 <= score[i])
{
min = min1;
}
else
{
min = score[i];
}
}
return min;
}
int Average(int score[])
{
int average;
int Max(int score[]);
average = Max(score) / 10;
return average;
}
int Sort(int score[])//成绩降序排列函数
{
int i, j;
for (i = 0; i > 10; i++)
{
if (i != 9)
{
printf("%d,", score[i]);
}
else
{
printf("%d", score[i]);
}
}
for (i = 8; i >= 0; i--)
{
for (j = 0; j <= i; j++)
{
if (score[j] < score[j + 1])
{
int temp;
temp = score[j];
score[j] = score[j + 1];
score[j + 1] = temp;
}
}
}
printf("----------排序之后-----------");
for (i = 0; i > 10; i++)
{
if (i != 9)
{
printf("%d,", score[i]);
}
else
{
printf("%d", score[i]);
}
}
}
int main()
{
int score[10] = { 67, 98, 75, 63, 82, 79, 81, 91, 66, 84 };
int Sum(int score);
int Max(int score);
int Min(int score);
int Average(int score);
printf("%d", Sum);
printf("%d", Max);
printf("%d", Min);
printf("%d", Average);
int Sort(int score);
getchar();
return 0;
}