fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x, y, z;
  6. cin >> x >> y >> z;
  7. double max = z;
  8. if ( y > max ){
  9. y = max;
  10. }
  11. if ( x > max ){
  12. x = max;
  13. }
  14. cout << max << endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3464KB
stdin
3 5 9
stdout
9