#include<iostream>
using namespace std;
int main()
{
int x=26;
int y=9;
cout<<"x&y: "<<(x&y)<<endl;
cout<<"x|y: "<<(x|y)<<endl;
cout<<"x^y: "<<(x^y)<<endl;
cout<<"x<<1: "<<(x<<1)<<endl;
cout<<"x>>1: "<<(x>>1)<<endl;
cout<<"~x: "<<(~x)<<endl;
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: