dxnge

40

Dec 4th, 2021
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. for i in range(101, 1000):
  2.     x = i
  3.     L = x-20
  4.     M = x + 15
  5.     while L != M:
  6.         if L > M:
  7.             L -= M
  8.         else:
  9.             M -= L
  10.     if M == 35:
  11.         print(i)
  12.         break
  13.  
Advertisement
Add Comment
Please, Sign In to add comment