From 7254cded14714f3d2b2faa383bb0bd32afecffaf Mon Sep 17 00:00:00 2001 From: user Date: Tue, 9 Dec 2025 14:31:32 +0500 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=2017?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.1_lesson.17.20.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/2.1_lesson.17.20.py b/2.1_lesson.17.20.py index e69de29..f503f8f 100644 --- a/2.1_lesson.17.20.py +++ b/2.1_lesson.17.20.py @@ -0,0 +1,7 @@ +****** Задание 17 Параграф ****** +****** Напишите программу, которая поможет магазину посчитать общую сумму выручки, учитывая, что кассовый аппарат выдаёт сумму последней покупки в двоичной системе счисления. ****** + +if name == "main": + earnings = int(input()) + last = int(input(), 2) + print(earnings + last)