fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 5, b = 3, c = 7;
  6.  
  7. int max = a > b ? a : (b > c ? b : c);
  8.  
  9. std::cout << max << std::endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 16048KB
stdin
Standard input is empty
stdout
5