fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x = 1, y = 1, z = 1;
  7. y = y + z;
  8. x = x + y;
  9. cout << "a=" << (x<y?y:x) << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
a=3