From 77e91000878dee0391e6e39cb2ed9cde4a336ee2 Mon Sep 17 00:00:00 2001 From: AkulkaK Date: Sun, 23 Nov 2025 14:33:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=BE=D0=B9=20=D0=BF=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=BA=D0=BE=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 calc.py diff --git a/calc.py b/calc.py new file mode 100644 index 0000000..8740a38 --- /dev/null +++ b/calc.py @@ -0,0 +1,11 @@ +num1 = float(input("ввелите 1 число:")) +num2 = float(input("ввелите 2 число:")) +operator = (input("введите знак:+,*:")) +if operator == "+": + result = num1 + num2 + print(result) +elif operator == "*": + result = num1 * num2 + print(result) +else: + print("ошибка") \ No newline at end of file