мой первый комит
This commit is contained in:
commit
77e9100087
11
calc.py
Normal file
11
calc.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
num1 = float(input("ввелите 1 число:"))
|
||||||
|
num2 = float(input("ввелите 2 число:"))
|
||||||
|
operator = (input("введите знак:+,*:"))
|
||||||
|
if operator == "+":
|
||||||
|
result = num1 + num2
|
||||||
|
print(result)
|
||||||
|
elif operator == "*":
|
||||||
|
result = num1 * num2
|
||||||
|
print(result)
|
||||||
|
else:
|
||||||
|
print("ошибка")
|
||||||
Loading…
Reference in New Issue
Block a user