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

This commit is contained in:
SiluyanovD 2025-11-17 06:48:58 +00:00
commit c31bf58a99

10
calculator.py Normal file
View File

@ -0,0 +1,10 @@
a=int(input("1 цифра: "))
c=input("Выберите способ вычисления(+ или *): ")
b=int(input("2 цифра: "))
if c=="+":
print("Ответ: ", a+b)
elif c=="*":
print("Ответ: ", a*b)
else:
print("Вы ввели неправильное значение!!!")