SHARE
TWEET

Untitled

a guest Dec 12th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. number = int(input())
  2.  
  3. num = str(number)[::-1]
  4. num = int(num)
  5. num = str(num)
  6. n1 = int(num[0])
  7. n2 = int(num[1])
  8. n3 = int(num[2])
  9.  
  10. for n in range(1 , n1 + 1):
  11.     for nn in range(1 , n2 + 1):
  12.         for nnn in range(1 , n3 + 1):
  13.             result = n * nn * nnn
  14.             print(f"{n} * {nn} * {nnn} = {result};")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top