From 409a5e9b18636d117c766af1402183c0fb819047 Mon Sep 17 00:00:00 2001 From: "Alice(KuzmenkoEA)" Date: Sun, 7 Apr 2024 21:07:53 +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..103c153 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'; return 0; }