为什么最高分的结果对而最低分的结果为66?
#include <stdio.h>
int main()
{
int score[]={67,98,75,63,82,79,81,91,66,84};
int i,j;
int sum()
{
int x=0;
for(i=0;i<=9;i++)
{
x+=score[i];
}
printf("总分为%d\n",x);
}
sum();
int max()
{
int x;
for(i=0;i<=9;++i)
{
for(j=0;j<=9;++j)
{
if(score[j]>score[i])
break;
x=score[i];
}
if(score[j]<score[i])
break;
}
printf("最高分为%d\n",x);
}
max();
int min()
{
int x;
for(i=0;i<=9;i++)
{
for(j=0;j<=9;j++)
{
if(score[j]<score[i])
break;
x=score[i];
}
if(score[j]>score[i])
break;
}
printf("最低分为%d\n",x);
}
min();
return 0;
}