From a4756818091b432fa19a272cda397dba1c5ce95c Mon Sep 17 00:00:00 2001 From: "Alice (ChirkaAR)" Date: Mon, 3 Mar 2025 00:36:30 +0300 Subject: [PATCH] code: add sum --- 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'; }