Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- m = int(input())
- s = int(input())
- for i in range(m, n - 1, -1):
- if i == s and s % 2 == 0 and s % 3 == 0:
- break
- elif i % 2 == 0 and i % 3 == 0:
- print(i, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement