Untitled

mail@pastecode.io avatar
unknown
python
2 months ago
188 B
1
Indexable
Never
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)
Leave a Comment