标签:算法 scan printf main 均值 pre sum amp int
//整数平均值 #include<stdio.h> int main(){ int n; int sum; scanf("%d\n",&n); int a[n]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); sum += a[i]; } printf("%d",sum/n); return 0; }
标签:算法 scan printf main 均值 pre sum amp int
原文地址:https://www.cnblogs.com/Hqx-curiosity/p/12239065.html