Сделал задание 20
This commit is contained in:
parent
0c3a4d975e
commit
976edf5c50
8
2.1_lesson.20.20.py
Normal file
8
2.1_lesson.20.20.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
****** Задание 20 Параграф 2.1 ******
|
||||
****** ернёмся в магазин, хозяин которого уже привык полагаться на всемогущую автоматизацию. ******
|
||||
|
||||
if name == "main":
|
||||
weight, price, price_1, price_2 = int(input()), int(input()), int(input()), int(input())
|
||||
weight_1 = int((price - price_2) * weight / (price_1 - price_2))
|
||||
weight_2 = weight - weight_1
|
||||
print(weight_1, weight_2)
|
||||
Loading…
Reference in a new issue