#include <stdio.h>
int main()
{
int x = 5;
int y = 10;
int result = x & y;
printf("%d & %d = %d\n", x, y, result);
result = x | y;
printf("%d | %d = %d\n", x, y, result);
result = x ^ y;
printf("%d ^ %d = %d\n", x, y, result);
result = ~x;
printf("~%d = %d\n", x, result);
return 0;
}