Advertisement
EmreTopchu

Untitled

Feb 27th, 2022
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. n = int(input())
  2. m = int(input())
  3. s = int(input())
  4.  
  5. for address in range(m, n, -1):
  6.     if address == s:
  7.         if s % 2 == 0 and s % 3 == 0:
  8.             break
  9.         else:
  10.             continue
  11.     if address % 2 == 0 and address % 3 == 0:
  12.         print(address, end=" ")
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement