#include <iostream>
using namespace std;
int main()
{
cout << "1 && 2 == " << int(1 && 2) << endl;
cout << "1 & 2 == " << int(1 & 2) << endl;
if(1 && 2)
{
cout << "1 && 2 == true" << endl;
}
else
{
cout << "1 && 2 == false" << endl;
}
if(1 & 2)
{
cout << "1 & 2 == true" << endl;
}
else
{
cout << "1 & 2 == false" << endl;
}
return 0;
}
1 && 2 == 1
1 & 2 == 0
1 && 2 == true
1 & 2 == false