Advertisement
bl00dt3ars

01. Unique PIN Codes

Dec 21st, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. n1 = int(input())
  2. n2 = int(input())
  3. n3 = int(input())
  4.  
  5. for i in range(1, n1 + 1):
  6.     for x in range(1, n2 + 1):
  7.         for z in range(1, n3 + 1):
  8.             if i % 2 == 0:
  9.                 if z % 2 == 0:
  10.                     if x == 2 or x == 3 or x == 5 or x == 7:
  11.                         print(f"{i} {x} {z}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement