Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n1 = int(input())
- n2 = int(input())
- n3 = int(input())
- for i in range(1, n1 + 1):
- for x in range(1, n2 + 1):
- for z in range(1, n3 + 1):
- if i % 2 == 0:
- if z % 2 == 0:
- if x == 2 or x == 3 or x == 5 or x == 7:
- print(f"{i} {x} {z}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement