#include <stdio.h>
#define NR 100
int main(void)
{ int array[NR]; int num,i; float result; printf("Input the number of student: \n");//输入人数 scanf("%d",&num); printf("Input the score: \n");//输入数据 for (i = 0; i <num; i++) scanf("%d",&array[i]); for (i = 0; i <num; i++)//求平均 result += array[i]; printf("%f",result/num);
}