''' prints out a table of numbers (week 2 assignment) '''
b={0:"0",1:"1",2:"10",3:"11",4:"100",5:"101",6:"110",7:"111",\
  8:"1000",9:"1001",10:"1010",11:"1011",12:"1100",13:"1101",14:"1110",15:"1111"}
  
for i in range(16):
  s=str(i)+"\t"+b[i]+"\t"+str(oct(i))+"\t"+str(hex(i))
  printNow(s)