16 lines
272 B
Python
16 lines
272 B
Python
a = int(input("1 число: "))
|
|
b = int (input("2 число: "))
|
|
go = str(input("+, -, *, / : "))
|
|
if go == "+":
|
|
c = a+b
|
|
print(c)
|
|
if go == "*":
|
|
d = a*b
|
|
print(d)
|
|
if go == "-":
|
|
e = a-b
|
|
print(e)
|
|
if go == "/":
|
|
t = a/b
|
|
print(t)
|