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

This commit is contained in:
SirtlanovaR 2025-11-17 06:55:11 +00:00
parent cde89d7968
commit 0b1a9897ba

18
g.py Normal file
View File

@ -0,0 +1,18 @@
a = float(input("Введите первое число: "))
operation = input("Выберите операцию: \n+ * - / \n")
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("Ошибка")