Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- for (int w = 0; w < 2; w++) {
- for (int x = 0; x < 2; x++) {
- for (int y = 0; y < 2; y++) {
- for (int z = 0; z < 2; z++) {
- if (((x || y) && !(y == z) && !w)
- && w + x + y +z == 2 || w + x + y +z == 1)
- cout << "w = " << w << " x = "<< x << " y = " << y
- << " z = " << z << endl;
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement