Загрузить файлы в «/»
This commit is contained in:
parent
cde89d7968
commit
0b1a9897ba
18
g.py
Normal file
18
g.py
Normal 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("Ошибка")
|
||||
Loading…
Reference in New Issue
Block a user