From 9908e9f12bcca514e0f0df2540cf894b155cf17a Mon Sep 17 00:00:00 2001 From: Zver Date: Fri, 21 Nov 2025 10:48:15 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=205=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesson.5.20 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lesson.5.20 diff --git a/lesson.5.20 b/lesson.5.20 new file mode 100644 index 0000000..dbfaa9a --- /dev/null +++ b/lesson.5.20 @@ -0,0 +1,12 @@ +''' ****** Задание 5 из 20 Параграф 2.1 ********* +* Теперь надо определить, какую сдачу нужно выдать покупателю за покупку товара. Стоимость покупки вычисляется как произведение цены на вес товара. +''' + + +if __name__ == "__main__" +price = int(input()) +weight = int(input()) +money = int(input()) +cost = price * weight +change = money - cost +print(change) \ No newline at end of file