commit 990b7e9198454b37ca7f280612628d8819c65272 Author: PonomarevaY Date: Thu Nov 27 09:20:19 2025 +0000 Загрузить файлы в «/» diff --git a/calcul b/calcul new file mode 100644 index 0000000..50f5b09 --- /dev/null +++ b/calcul @@ -0,0 +1,13 @@ +def calculator(): + operation= input("+,*,-,/") + number1=float(input("1 число: ")) + number2=float(input("2 число: ")) + if operation== '+': + result=number1+number2 + elif operation== '*': + result=number1*number2 + elif operation=='-': + result=number1-number2 + elif operation=='/': + result= number1/number2 + print(f"Результат: {result}") \ No newline at end of file