Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://www.reddit.com/r/beginnerprojects/comments/2agwnq/project_multiplication_table/
- length = int(input('How big do you want the multiplication table be?\n'))
- for f in range(0,(length+1)):
- if f == 0:
- print('x'.rjust(3), end = ' |')
- elif f != (length) and f != 0:
- print(str(f).rjust(3), end = ' ')
- else:
- print(str(f).rjust(3))
- print('-' *length * 7)
- for i in range(1,(length+1)):
- print(str(i).rjust(3), end = ' |')
- for m in range(1,(length+1)):
- print(str(i*m).rjust(3), end = ' ')
- print('')
Add Comment
Please, Sign In to add comment