fork download
  1. // Program for printing largest of two numbers?
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. int a = 10;
  7. int b = 20;
  8.  
  9. cout << ((a > b) ? a : b) << endl;
  10. }
Success #stdin #stdout 0s 4532KB
stdin
Standard input is empty
stdout
20