calculator/calcularot.py

9 lines
184 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)