fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x=0;
  6.  
  7. if(x=1)
  8. printf("2");
  9. else
  10. printf("2_");
  11. cout<<endl<<"x="<<x<<endl<<endl;
  12.  
  13. if(x=0)
  14. printf("3");
  15. else
  16. printf("3_");
  17. cout<<endl<<"x="<<x<<endl<<endl;
  18.  
  19.  
  20.  
  21. x=2;
  22. if(x=3 || x==2)
  23. printf("8");
  24. else
  25. printf("8_");
  26. cout<<endl<<"x="<<x<<endl<<endl;
  27.  
  28. x=2;
  29. if(x=3 || x==10)
  30. printf("8");
  31. else
  32. printf("8_");
  33. cout<<endl<<"x="<<x<<endl<<endl;
  34.  
  35. x=2;
  36. if(x=3 && x==2)
  37. printf("8");
  38. else
  39. printf("8_");
  40. cout<<endl<<"x="<<x<<endl<<endl;
  41.  
  42. x=2;
  43. if(x=3 && x==10)
  44. printf("8");
  45. else
  46. printf("8_");
  47. cout<<endl<<"x="<<x<<endl<<endl;
  48.  
  49.  
  50.  
  51. x=2;
  52. if(x=0 || x==2)
  53. printf("9");
  54. else
  55. printf("9_");
  56. cout<<endl<<"x="<<x<<endl<<endl;
  57.  
  58. x=2;
  59. if(x=0 || x==10)
  60. printf("9");
  61. else
  62. printf("9_");
  63. cout<<endl<<"x="<<x<<endl<<endl;
  64.  
  65. x=2;
  66. if(x=0 && x==2)
  67. printf("9");
  68. else
  69. printf("9_");
  70. cout<<endl<<"x="<<x<<endl<<endl;
  71.  
  72. x=2;
  73. if(x=0 && x==10)
  74. printf("9");
  75. else
  76. printf("9_");
  77. cout<<endl<<"x="<<x<<endl<<endl;
  78.  
  79.  
  80.  
  81. return 0;
  82. }
Success #stdin #stdout 0.01s 5500KB
stdin
Standard input is empty
stdout
2
x=1

3_
x=0

8
x=1

8
x=1

8
x=1

8_
x=0

9
x=1

9_
x=0

9_
x=0

9_
x=0