first commit
This commit is contained in:
commit
f844879eb1
16
Bikchurina.py
Normal file
16
Bikchurina.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
a = int(input("Введите 1 число "))
|
||||||
|
b = int(input("Введите 2 число"))
|
||||||
|
x = (input("Введите арифметический знак"))
|
||||||
|
|
||||||
|
|
||||||
|
if x == '+':
|
||||||
|
result = a+b
|
||||||
|
elif x == '*':
|
||||||
|
result = a * b
|
||||||
|
else:
|
||||||
|
print(" error ")
|
||||||
|
result = None
|
||||||
|
|
||||||
|
|
||||||
|
if result is not None:
|
||||||
|
print("Результат:", result)
|
||||||
Loading…
Reference in New Issue
Block a user