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