fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. double a, b, c;
  7. cin >> a >> b >> c;
  8.  
  9. double tbc = (a + b + c) / 3;
  10. double tbn = cbrt(a * b * c);
  11.  
  12. cout << fixed << setprecision(2) << tbc << endl;
  13. cout << fixed << setprecision(2) << tbn;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
0.00
0.00