#Diketahui
x = 4
y = 11
print("nilai: ", x, ", binary: ", format(x, "08b"))
print("nilai: ", y, ", binary: ", format(y, "08b"), "\n")
#z= x|y
z = x|y
print("nilai: ", z, ", binary: ", format(z, "08b"), "\n")
#z= x>>y
z = x>>y
print("nilai: ", z, ", binary: ", format(z, "08b"), "\n")
#z= x^y
z = x ^ y
print("nilai: ", z, ", binary: ", format(z, "08b"), "\n")
#z= ~x
z = ~x
print("nilai: ", z, ", binary: ", format(z, "08b"), "\n")
#Z= y&x
z = y&x
print("nilai: ", z, ", binary: ", format(z, "08b"), "\n")