Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input())
- for num1 in range(1, 10):
- for num2 in range(1, 10):
- for num3 in range(1, 10):
- for num4 in range(1, 10):
- if num % num1 == num % num2 == num % num3 == num % num4 == 0:
- print(' ', end=f'{num1}{num2}{num3}{num4}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement