Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num1 = int(input())
- num2 = int(input())
- num3 = int(input())
- pin1 = []
- pin2 = []
- pin3 = []
- for a in range(1, num1 + 1):
- if a % 2 == 0:
- pin1.append(a)
- for b in range(1, num2 + 1):
- if b in [2, 3, 5, 7]:
- pin2.append(b)
- for c in range(1, num3 + 1):
- if c % 2 == 0:
- pin3.append(c)
- for i in pin1:
- for j in pin2:
- for h in pin3:
- print(i, j, h)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement