Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def multTable():
- maximum_value = int(input("How big of a multiplication table should I make?\n"))
- table = ''
- for x in range(1, maximum_value + 1):
- for y in range (1, maximum_value + 1):
- table = '\t'.join((table,'{0:2d}'.format(x*y)))
- table = '\n'.join((table, '\n'))
- print(table)
- multTable()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement