From 6b5159e7546dd8008f288e1d32b48d33c4714e9c Mon Sep 17 00:00:00 2001 From: AkulkaK Date: Thu, 27 Nov 2025 09:38:35 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc1.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 calc1.py diff --git a/calc1.py b/calc1.py new file mode 100644 index 0000000..6062c93 --- /dev/null +++ b/calc1.py @@ -0,0 +1,17 @@ +num1 = float(input("ввелите 1 число:")) +num2 = float(input("ввелите 2 число:")) +operator = (input("введите знак:+,*,-,/:")) +if operator == "+": + result = num1 + num2 + print(result) +elif operator == "*": + result = num1 * num2 + print(result) +elif operator == "-": + result = num1 - num2 + print(result) +elif operator == "/": + result = num1 / num2 + print(result) +else: + print("ошибка") \ No newline at end of file