From d38494a62f7f4a527bc2a9f510a1d8b1470a30fe Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 13 Aug 2022 00:22:07 +0100 Subject: [PATCH] Summary 1. --- main.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 4afb061..a258be3 100644 --- a/main.cpp +++ b/main.cpp @@ -2,9 +2,13 @@ int main() { - int x{ 0 }; - std::cout << "Number Repeater:\nEnter the Number: "; - std::cin >> x; - std::cout << std::endl << "You Entered: " << x << "!\n"; + int i1{ }; + int i2{ }; + std::cout << "Enter a Integer: "; + std::cin >> i1; + std::cout << "Enter another Integer: "; + std::cin >> i2; + std::cout << i1 << " + " << i2 << " is " << i1 + i2 << "\n"; + std::cout << i1 << " - " << i2 << " is " << i1 - i2 << "\n"; return 0; }