# ChapterArithmetic/binHexa.py """ Binary - hexadecimal representation. Enter n? 5 0 = 0b0 0x0 1 = 0b1 0x1 2 = 0b10 0x2 3 = 0b11 0x3 4 = 0b100 0x4 """ def main(): n = int(input("Binary - hexadecimal representation. Enter n? ")) for i in range(n): print(i,"=", bin(i), hex(i)) main()