Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. n = int(input())
  2. width = len("{0:b}".format(n))
  3. for i in range(1,n+1):
  4.   print ("{0:{width}d} {0:{width}o} {0:{width}X} {0:{width}b}".format(i, width=width))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement