sivan_iut

Untitled

Feb 19th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n;
  5.     scanf("%d",&n);
  6.     int i;
  7.     int s;
  8.     int sum=0;
  9.     for(i=0;i<n;i++)
  10.     {
  11.         scanf("%d",&s);
  12.         sum=sum+s;
  13.     }
  14.     printf("%.12lf",(double)sum/n);
  15.  
  16.     return 0;
  17. }
Add Comment
Please, Sign In to add comment