1 题目
2 实现代码
void main() {int a[10];int max;int min;float avg;//数组赋值for (int i = 0; i < 10; i++) {scanf("%d", &a[i]);}avg = max = min = a[0];//找出最值,求和for (int i = 0; i < 10; i++) {if (max < a[i]) {max = a[i];}else if (min > a[i]) {min = a[i];}avg += a[i];}avg = avg - (max + min);avg = avg / 8.0;printf("%d\n", avg);}