Advertisement
simeonshopov

Matrix

Oct 22nd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. d = int(input())
  5.  
  6. for frfn in range(a, b + 1):
  7.   for frsn in range(a, b + 1):
  8.     for srfn in range(c, d + 1):
  9.       for srsn  in range(c, d + 1):
  10.         if (frfn + srsn) == (frsn + srfn) and frfn != frsn and srfn != srsn:
  11.           print(f"{frfn}{frsn}")
  12.           print(f"{srfn}{srsn}\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement