Загрузить файлы в «/»

This commit is contained in:
SuhovK 2025-11-17 06:57:08 +00:00
parent 90f6f64573
commit 0c48bcbf04

18
1.py Normal file
View File

@ -0,0 +1,18 @@
a = float(input())
operation = input("Операция (+, -, *, /): ")
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("Ошибка")