fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Input
  6. int a, b, c;
  7. cin >> a >> b >> c;
  8.  
  9. // Process -> Output
  10. if (a >= b && a >= c) cout << a;
  11. else if (b >= a & b >= c) cout << b;
  12. else cout << c;
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5324KB
stdin
1 2 3
stdout
3