Advertisement
bl00dt3ars

04. Gifts from Santa

Nov 14th, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. n = int(input())
  2. m = int(input())
  3. s = int(input())
  4.  
  5. for i in range(m, n - 1, - 1):
  6.     if i % 2 == 0 and i % 3 == 0:
  7.         if i == s:
  8.             break
  9.         else:
  10.             print(i, end= " ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement