Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- for b in range(1, a + 1):
- for c in range(1, a + 1):
- for d in range(1, a + 1):
- for e in range(1, a + 1):
- if b >= 10 or c >= 10 or d >= 10 or e >= 10:
- break
- if (b + c) == (d + e) and (a % (b + c) == 0):
- print(f"{b}{c}{d}{e}", end=" ")
Advertisement
Add Comment
Please, Sign In to add comment