#includeint main(){ int n,i,ave; int sum=0; int a[]; printf("请输入一个整数n(1≤n≤10):"); scanf("%d",&n); for(i=0;i scanf("%d",&a[i]); sum=sum+a[i]; } ave=sum/n; printf("the result is %d",ave); return 0;}