Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start_num = int(input())
- final_num = int(input())
- for i in range(start_num, final_num + 1):
- for k in range(start_num, final_num + 1):
- for j in range(start_num, final_num + 1):
- for x in range(start_num, final_num + 1):
- if (i % 2 == 0 and x % 2 == 1 or i % 2 == 1 and x % 2 == 0) and i > x and (k + j) % 2 == 0:
- print(f'{i}{k}{j}{x}', end=' ')
Add Comment
Please, Sign In to add comment