Обновить My_first_comit

This commit is contained in:
IvaevR 2025-11-27 08:57:42 +00:00
parent c643595839
commit 930042e906

View File

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