Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- c = int(input())
- d = int(input())
- for frfn in range(a, b + 1):
- for frsn in range(a, b + 1):
- for srfn in range(c, d + 1):
- for srsn in range(c, d + 1):
- if (frfn + srsn) == (frsn + srfn) and frfn != frsn and srfn != srsn:
- print(f"{frfn}{frsn}")
- print(f"{srfn}{srsn}\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement