commit fb7d181e2eb7e7af684921f5e21427164e67ee23 Author: PonomarevaY Date: Mon Nov 24 08:16:56 2025 +0000 Загрузить файлы в «/» diff --git a/calcu.py b/calcu.py new file mode 100644 index 0000000..cd3612c --- /dev/null +++ b/calcu.py @@ -0,0 +1,10 @@ +def calculator(): + operation = input("Введите операцию (+ или *): ") + num1 = float(input("первое число: ")) + num2 = float(input("второе число: ")) + if operation == '+': + result = num1 + num2 + elif operation == '*': + + result = num1 * num2 +print(f"Результат: {result}") \ No newline at end of file