Ответ:
print('способ|5 кг|10 кг|15 кг')
k=0
for q in range (100//5+1):
for w in range (100//10+1):
for e in range (100//15+1):
if q*5+w*10+e*15==100:
k+=1
print("%4d%5d%6d%6d" %(k,q,w,e))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
print('способ|5 кг|10 кг|15 кг')
k=0
for q in range (100//5+1):
for w in range (100//10+1):
for e in range (100//15+1):
if q*5+w*10+e*15==100:
k+=1
print("%4d%5d%6d%6d" %(k,q,w,e))