Advertisement
BbJLeB

05. Gifts from Santa

May 28th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. # 05. Gifts from Santa
  2. n = int(input())
  3. m = int(input())
  4. s = int(input())
  5.  
  6. for i in range(m,n-1,-1):
  7.     if i % 3 == 0 and i % 2 == 0:
  8.         if i == s:
  9.             break
  10.         print(i, end=' ')
  11.     else:
  12.         continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement