Загрузить файлы в «/»
This commit is contained in:
commit
f284fbcb66
12
calculator.py
Normal file
12
calculator.py
Normal file
@ -0,0 +1,12 @@
|
||||
a = float(input("Введите первое число"))
|
||||
operation = input("+ или * ? ")
|
||||
b = float(input("Введите второе число:"))
|
||||
|
||||
if operation == "+":
|
||||
print(a+b)
|
||||
|
||||
elif operation == "*":
|
||||
print(a*b)
|
||||
|
||||
else:
|
||||
print("Ощибка")
|
||||
Loading…
Reference in New Issue
Block a user