From 609326938761af984dd605100157334e1715d4eb Mon Sep 17 00:00:00 2001 From: "alice (IvanovVG)" Date: Mon, 17 Mar 2025 15:05:38 +0300 Subject: [PATCH] code: add summ and substruction --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 2fbd623..3ec5517 100644 --- a/main.cpp +++ b/main.cpp @@ -7,5 +7,7 @@ int main() cout << "Enter A and B: "; int a, b; cin >> a >> b; - cout << a+b; + cout << "A + B = " << a + b << '\n' + << "A - B = " << a - b << '\n'; + }