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