новая ветка
This commit is contained in:
commit
0f61d76053
14
calcul.py
Normal file
14
calcul.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
a = float(input("Введите число:"))
|
||||||
|
op = input("Введите операцию,(+ * / -)")
|
||||||
|
b = float(input("Введите второе число:"))
|
||||||
|
if op == "+":
|
||||||
|
otvet = a + b
|
||||||
|
elif op =="*":
|
||||||
|
otvet = a * b
|
||||||
|
elif op=="/":
|
||||||
|
otvet = a / b
|
||||||
|
elif op=="-":
|
||||||
|
otvet = a - b
|
||||||
|
else:
|
||||||
|
otvet = "я такое не умею делать"
|
||||||
|
print(f"Результат: {otvet}")
|
||||||
Loading…
Reference in New Issue
Block a user