Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def print_multiplication_table(n):
- n1 = 1
- while n1 < n + 1:
- counter = 1
- while (counter < n + 1):
- n2 = 1
- i = 1
- while i == n2:
- m = n1 * counter
- s = '#' + str(n1) + ' * ' + str(counter) + ' = ' + str(m)
- print s
- n2 = n2 + 1
- counter = counter + 1
- n1 = n1 + 1
- return
- print_multiplication_table(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement