Advertisement
Spocoman

05. Special Numbers

Dec 30th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. num = 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 num % num1 == num % num2 == num % num3 == num % num4 == 0:
  7.                     print(' ', end=f'{num1}{num2}{num3}{num4}')
  8.  
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement