Загрузить файлы в «calc 2.0»

This commit is contained in:
ChernenkoM 2025-11-27 08:33:02 +00:00
parent a3add840b6
commit 8920a82b8b

17
calc 2.0/calc.py 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 == "умножить":
c = a*b
print("Твой ответ", c,"брат")
elif d == "+":
e = a+b
print("Твой ответ", e,"брат")
elif d == "сложить":
e = a+b
print("Твой ответ", e,"брат")
else:
print("Прасти брат мой, я такое не уметь")