PGK-MDK/calcIV.py

17 lines
493 B
Python

a = int(input("Введи первое число"))
b = int(input("Введи первое число"))
d = str(input("Что будем делать?"))
if d == "*":
c = a*b
print("Твой ответ", c)
elif d == "Умножить":
c = a*b
print("Твой ответ", c)
elif d == "Сложить":
c = a+b
print("Твой ответ", c)
elif d == "+":
c = a+b
print("Твой ответ", c)
else:
print("Такое не умеем")