fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int x,y,z; // variabili globali
  5. int main() {
  6. // your code goes here
  7.  
  8. cin>>x;
  9. cin>>y;
  10. cin>>z;
  11. float M = (x+y+z)/3.0;
  12. cout<< " Media= "<<M<<endl;
  13.  
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5272KB
stdin
5
6
8
stdout
 Media= 6.33333