From 874c94d254c81a3e9c32a32adc53f197f8f9fe05 Mon Sep 17 00:00:00 2001 From: user_2i Date: Tue, 16 Dec 2025 11:43:33 +0500 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=205?= =?UTF-8?q?=20=D0=B8=D0=B7=2020=20=D0=BF=D0=B0=D1=80=D0=B0=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D1=84=D1=84=202.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesson_5.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lesson_5.py diff --git a/lesson_5.py b/lesson_5.py new file mode 100644 index 0000000..d2472d8 --- /dev/null +++ b/lesson_5.py @@ -0,0 +1,9 @@ +'''***Задание 3 из 20 Параграф 2.1 *************** +* Теперь надо определить, какую сдачу нужно выдать покупателю за покупку товара. +''' + +if __name__ == "__main__": + price = int(input()) + weight = int(input()) + money = int(input()) + print(money - price * weight) \ No newline at end of file