From a21f666c10b54c59b251ea064b6e49935eeebc5f Mon Sep 17 00:00:00 2001 From: Aaron Partridge Date: Mon, 8 Sep 2025 11:31:36 -0700 Subject: [PATCH] added more information so user can see all the operations preformed on the two chosen numbers --- main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..6a8e526 100644 --- a/main.cpp +++ b/main.cpp @@ -9,16 +9,16 @@ int main() { cout << "Hi, please enter two whole numbers: "; - int x,y; + int x, y; cin >> x >> y; - cout << "Addition: " << x + y << endl; - cout << "Subtraction: " << x - y << endl; - cout << "Multiplication: " << x * y << endl; - cout << "Division: " << x / y << endl; - cout << "Remainder: " << x % y << endl; - cout << "Square Root: " << sqrt(x) << endl; - cout << "Square: " << pow(x, y) << endl; + cout << "Addition: " << x << " + " << y << " = " << x + y << endl; + cout << "Subtraction: " << x << " - " << y << " = " << x - y << endl; + cout << "Multiplication: " << x << " * " << y << " = " << x * y << endl; + cout << "Division: " << x << " / " << y << " = " << x / y << " with a remainder of: " << x % y << endl; + cout << "Square Root of " << x << " is " << sqrt(x) << endl; + cout << "Square Root of " << y << " is " << sqrt(y) << endl; + cout << "Square: " << x << "^" << y << " = " << pow(x, y) << endl; return 0; }