Untitled
unknown
python
a year ago
188 B
4
Indexable
n = int(input()) for i in range(100, n + 1): a = max(i % 10, 1) b = max((i % 100) // 10, 1) c = i // 100 if i % a == 0 and i % b == 0 and i % c == 0: print(i)
Editor is loading...
Leave a Comment
n = int(input()) for i in range(100, n + 1): a = max(i % 10, 1) b = max((i % 100) // 10, 1) c = i // 100 if i % a == 0 and i % b == 0 and i % c == 0: print(i)