fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int m, i;
  7. cin >> m;
  8. for( int j=0;j<2; ++j )
  9. {
  10. cin >> i;
  11. if( i > m ) m = i;
  12. }
  13. cout << "max: " << m << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3300KB
stdin
1 5 0
stdout
max: 5