Ответ:
python
def getSum(a):
s=0
while a!=0:
d=a%10
s+=d
a=a//10
return s
a=32
while getSum(a) < 8:
a+=1
print(a)
>>> 35
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
python
def getSum(a):
s=0
while a!=0:
d=a%10
s+=d
a=a//10
return s
a=32
while getSum(a) < 8:
a+=1
print(a)
>>> 35