Advertisement
Nikola_Stankov

multiply_table

Oct 27th, 2022 (edited)
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. number = input()
  2. num1 = number[2]
  3. num2 = number[1]
  4. num3 = number[0]
  5.  
  6.  
  7. for num1 in range(1, int(num1) + 1):
  8.     for num2 in range(1, int(num2) + 1):
  9.         for num3 in range(1, int(num3) + 1):
  10.             print(f'{num1} * {num2} * {num3} = {num1 * num2 * num3};')
  11.  
  12. # number = input()
  13. #
  14. # for i in range(1, ord(number[2]) - 47):
  15. #     for j in range(1, ord(number[1]) - 47):
  16. #         for k in range(1, ord(number[0]) - 47):
  17. #             print(f"{i} * {j} * {k} = {i * j * k};")
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement