Advertisement
_takumi

num2

Oct 1st, 2020
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     for (int w = 0; w < 2; w++) {
  6.         for (int x = 0; x < 2; x++) {
  7.             for (int y = 0; y < 2; y++) {
  8.                 for (int z = 0; z < 2; z++) {
  9.                     if (((x || y) && !(y == z) && !w)
  10.                         && w + x + y +z == 2 || w + x + y +z == 1)
  11.                         cout << "w = " << w << " x = "<< x << " y = " << y
  12.                             << " z = " << z << endl;
  13.                 }
  14.             }
  15.         }
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement