Обновить My_first_comit
This commit is contained in:
parent
c643595839
commit
930042e906
@ -1,17 +1,17 @@
|
||||
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:
|
||||
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("Такое не умеем")
|
||||
Loading…
Reference in New Issue
Block a user