Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2020
1,748
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. N = int(input())
  2. M = int(input())
  3. S = int(input())
  4.  
  5. for house in range(M, N-1, -1):
  6. if house % 2 == 0 and house % 3 == 0:
  7. if house == S:
  8. break
  9. print(house, end=' ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement