fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a =1;
  6. int b = 0;
  7. int c = 2;
  8. int d = 0;
  9. if(a==0 && (b=1) || c==2 && (d=1))
  10. {
  11. printf("A:%d, b:%d, c:%d, d:%d", a,b,c,d);
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
A:1, b:0, c:2, d:1