输出格式
求平均年龄
http://www.nowcoder.com/questionTerminal/ca319fdb02714994850cc631d76f5547
#include <stdio.h> int main() { int n,i; while(scanf("%d",&n)!=EOF) { float a[n],sum=0; for(i=0;i<n;i++) { scanf("%f",&a[i]); sum+=a[i]; } printf("%.2f\n",sum/n); } }(•̀ᴗ•́)و