# ============================= Operator Bitwise ===========================

title = "Operator Bitwise"
print("\n" + title.upper().center(100))
print("================================\n".center(100))

a = 14
b = 3
    
# Bitwise AND operation    
print("a & b =", a & b)  

print("\n============== Bitwise AND Explanation ================\n")

print("a = ", a ,"= 1110 (Binary)")
print("a = ", b ,"= 0011 (Binary)")
print("\na & b = 1110")
print("&".center(20))
print("0011".center(20))
print("= 0010".center(17))
print("= 2 (Decimal)".center(25))

print("\n============== End Bitwise AND Explanation ================")
# End Bitwise AND operation    
    
# Bitwise OR operation  
print("\na | b =", a | b)  

print("\n============== Bitwise OR Explanation ================\n")

print("a = ", a ,"= 1110 (Binary)")
print("a = ", b ,"= 0011 (Binary)")
print("\na | b = 1110")
print("|".center(20))
print("0011".center(20))
print("= 1111".center(17))
print("= 15 (Decimal)".center(25))

print("\n============== End Bitwise OR Explanation ================")

# End Bitwise OR operation  
    

   
# ============================= End Operator Bitwise ===========================