From 85956f584ceffea6f898377f033762f165eff654 Mon Sep 17 00:00:00 2001 From: "Alice(PokhilAA)" Date: Sun, 24 Mar 2024 23:40:12 +0300 Subject: [PATCH] code: add sum --- main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index b4392ec..c166ede 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,9 @@ using namespace std; int main() { - cout << "Hello world!" << endl; + cout << "Enter A and B: "; + int a, b; + cin >> a >> b; + cout << "A + B = " << a + b << '\n' << "A - B = " << a - b << '\n'; return 0; }