Добавить My-second-comit

This commit is contained in:
DocenkoV 2025-11-27 08:52:01 +00:00
parent 8a84c2511a
commit c101b75c5c

17
My-second-comit Normal file
View File

@ -0,0 +1,17 @@
a = int(input("Введите первую цифру"))
b = int(input("Введите вторую цифру"))
d = str(input("Выберите действие: */+-"))
if d == "*":
c = a*b
print("Ответ:",c)
elif d == "+":
e = a+b
print("Ответ:",e)
if d == "/":
f = a/b
print("Ответ:",f)
if d == "-":
y = a-b
print("Ответ:",y)
else:
print("error")