Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(1, 1000):
- x = i
- a, b = 0, 0
- while x > 0:
- c = x % 10
- a = a + c
- if b < c:
- b = c
- x = x // 10
- if a == 10 and b == 6:
- print(i)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement