From 0b1a9897ba679c57703a908f361521d4356d0711 Mon Sep 17 00:00:00 2001 From: SirtlanovaR Date: Mon, 17 Nov 2025 06:55:11 +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 --- g.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 g.py diff --git a/g.py b/g.py new file mode 100644 index 0000000..8e3e1c9 --- /dev/null +++ b/g.py @@ -0,0 +1,18 @@ +a = float(input("Введите первое число: ")) +operation = input("Выберите операцию: \n+ * - / \n") +b = float(input("Введите второе число: ")) + +if operation == "+": + print(a+b) + +elif operation == "*": + print(a*b) + +elif operation == "-": + print(a-b) + +elif operation == "/": + print(a/b) + +else: + print("Ошибка") \ No newline at end of file