commit 0318e2c830bea19df0e7c6bef8eb5c1d234d76e5 Author: SirtlanovaR Date: Sat Nov 8 17:34:12 2025 +0000 Загрузить файлы в «/» diff --git a/.py b/.py new file mode 100644 index 0000000..c9dadc9 --- /dev/null +++ b/.py @@ -0,0 +1,12 @@ +a = float(input("Введите первое число: ")) +operation = input("+ или * ? ") +b = float(input("Введите второе число: ")) + +if operation == "+": + print(a+b) + +elif operation == "*": + print(a*b) + +else: + print("Ошибка") \ No newline at end of file