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.  
  8. cout << (++x || ++y && ++z ) << endl;
  9.  
  10. cout << x << " " << y << " " << z ;
  11.  
  12. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
1
2 1 1