fork download
  1. #include <iostream>
  2. #include <climits>
  3. using namespace std;
  4.  
  5. int main() {
  6. cout << "x y z w F" << endl;
  7. for (int x = 0; x <= 1; x++)
  8. for (int y = 0; y <= 1; y++)
  9. for (int z = 0; z <= 1; z++)
  10. for (int w = 0; w <= 1; w++)
  11. if ((((!x || y) == !z) && w))
  12. cout << x << " "
  13. << y << " "
  14. << z << " "
  15. << w << " "
  16. << (((!x || y) == !z) && w)
  17. << endl;
  18. return 0;
  19. }
Success #stdin #stdout 0s 4776KB
stdin
Standard input is empty
stdout
x y z w  F
0 0 0 1  1
0 1 0 1  1
1 0 1 1  1
1 1 0 1  1