Anna3O0

Medie aritmetica

Jun 27th, 2019
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double x,y,z ;
  9. cin>>x>>y>>z;
  10. x=(x+y+z)/3;
  11. cout<<fixed<<setprecision(2)<<x;
  12. return 0;
  13. }
RAW Paste Data