commit 6f09f68bdbe55128e1a65e818feb21f8338da130 Author: OgayA Date: Mon Nov 24 02:53:29 2025 +0000 Добавить calculator diff --git a/calculator b/calculator new file mode 100644 index 0000000..5e59ba1 --- /dev/null +++ b/calculator @@ -0,0 +1,11 @@ +a = int(input("Введите первую цифру")) +b = int(input("Ввеидте вторую цифру")) +d = str(input("*/+?")) +if d == "*": + c = a*b + print(c) +elif d == "+": + e = a+b + print("Ответ:",e) +else: + print("eror") \ No newline at end of file