为何没有减去最小值
/*歌星大奖赛*/#include "stdio.h"
void main()
{
int i,total_score=0,each_score;
int max=0,min=0;
for(i=1;i<=4;i++)
{
printf("请输入成绩:");
scanf("%d",&each_score);
while(min>each_score)
min=each_score;
while(max<each_score)
max=each_score;
total_score=total_score+each_score;
}
total_score=total_score-max-min;
printf("去掉最高分和最低分后总分是:%d",total_score);
}
我这边怎么就减不了最小值的呃~~