Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int i,n;
- double arr[102],sum=0;
- cin>>n;
- for(i=0; i<n; i++)
- {
- cin>>arr[i];
- sum=sum+arr[i];
- }
- double ans;
- ans=((sum*100)/(n*100));
- cout<<fixed<<setprecision(12)<<ans<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement