🚀个人主页:BabyZZの秘密日记
📖收入专栏:C语言练习题分享
🌍文章目入

#include <stdio.h>
int main()
{int score = 0, max = 0, min = 100, sum = 0, count = 0; while (scanf("%d", &score) != EOF){if (score > max)//判断最高分max = score; if (score < min)//判断最低分min = score; sum += score; count++; if (count == 7)//代表一组的分数好了,进行计算{printf("%.2f\n", (sum - max - min) / 5.0);max = 0, min = 100, sum = 0, count = 0;//重置}}return 0;
}