#include using namespace std; int main() { int x, y, z; x = 2; y = 4; z = 5; if (x == 3 && (y == 4 || z == 5)) cout << "it's true" << endl; else cout << "it's false" << endl; if ((x == 3 && y == 4) || z == 5) cout << "it's true" << endl; else cout << "it's false" << endl; if (x == 3 && y == 4 || z == 5) cout << "it's true" << endl; else cout << "it's false" << endl; //***************************** if ((z == 5 || x == 3) && y == 7) cout << "it's true" << endl; else cout << "it's false" << endl; if (z == 5 || (x == 3 && y == 7)) cout << "it's true" << endl; else cout << "it's false" << endl; if (z == 5 || x == 3 && y == 7) cout << "it's true" << endl; else cout << "it's false" << endl; return 0; // results are false, true, true, // false, true, true }