1 #include<stdio.h> 2 int main() 3 { 4 double ans,x; 5 int n=12; 6 while(n--) 7 { 8 scanf("%lf",&x); 9 ans+=x; 10 } 11 ans/=12; 12 printf("%.2f ",ans); 13 }
1 #include<stdio.h> 2 int main() 3 { 4 double ans,x; 5 int n=12; 6 while(n--) 7 { 8 scanf("%lf",&x); 9 ans+=x; 10 } 11 ans/=12; 12 printf("%.2f ",ans); 13 }