#includevoid main(){int i,a[10],sum=0;float avg;printf("please input 10 numbers.\n");for(i = 0;i < 10;i++){scanf("%d",&a[i]);sum+=a[i];}avg=sum*1.0/10;printf("平均成绩为:%.1f\n",avg);}