Ответ:
def digitsSum(a):
s = 0
while a > 0:
s += a % 10
a //= 10
return s
for i in range(0, 20000, 17):
if i % 100 == 17 and digitsSum(i) == 17:
print(i)
break
Объяснение:
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
def digitsSum(a):
s = 0
while a > 0:
s += a % 10
a //= 10
return s
for i in range(0, 20000, 17):
if i % 100 == 17 and digitsSum(i) == 17:
print(i)
break
Объяснение: