diff --git a/calculator.py b/calculator.py new file mode 100644 index 0000000..9a92d51 --- /dev/null +++ b/calculator.py @@ -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("Вы ввели неправильное значение!!!") + \ No newline at end of file