#include using namespace std; int main() { bool n1 = (3>2) ^ (1==1); // both true, XOR yields false cout << "(3>2) ^ (1==1) = " << n1 << endl; bool n2 = (3<2) ^ (1==1); // one true, XOR yields true cout << "(3<2) ^ (1==1) = " << n2 << endl; bool n3 = (3<2) ^ (1==2); // both false, XOR yields false cout << "(3<2) ^ (1==2) = " << n3 << endl; }