commit f284fbcb6643d0836186e493abf81595174c9c56 Author: DyakonovS Date: Sun Nov 9 10:17:59 2025 +0000 Загрузить файлы в «/» diff --git a/calculator.py b/calculator.py new file mode 100644 index 0000000..7660529 --- /dev/null +++ b/calculator.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