Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. n = int(input())
  2. for num1 in range(1, 10):
  3.     for num2 in range(1, 10):
  4.         for num3 in range(1, 10):
  5.             for num4 in range(1, 10):
  6.                 if n % num1 == 0 and n % num2 == 0 and n % num3 == 0 and n % num4 == 0:
  7.                     print(f"{num1}{num2}{num3}{num4}", end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement