rengetsu

Proced_3_Pratyb_3.04

Mar 13th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. double n,a[11],sum=0;
  7. cin>>n;
  8. for(int i=0;i<n;i++)
  9. {cin>>a[i];sum+=a[i];}
  10. cout<<fixed<<setprecision(2)<<sum/n<<endl;
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment