Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = int(input())
- password = 'No!'
- output = ''
- counter = 0
- for a in range(1, 10):
- for b in range(1, 10):
- for c in range(1, 10):
- for d in range(1, 10):
- if a * b + c * d == number and a < b and c > d:
- output += f'{a}{b}{c}{d} '
- counter += 1
- if counter == 4:
- password = f'Password: {a}{b}{c}{d}'
- print(f'{output}\n{password}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement