From 25f963d3e4eaf2c14316ca1d007c8a886c296b44 Mon Sep 17 00:00:00 2001 From: "Alice (OvsiannikovRS)" Date: Mon, 7 Apr 2025 02:30:42 +0300 Subject: [PATCH] code: add sum A&B --- main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index b4392ec..4364dbc 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,8 @@ using namespace std; int main() { - cout << "Hello world!" << endl; - return 0; + cout << "Enter A and B: "; + int a, b; + cin >> a >> b; + cout << "A + B = " << a + b << '\n'; }