From 8888b6fdbc0fef535365954b05e0eb406681ad6a Mon Sep 17 00:00:00 2001 From: Zach Boggs <55774849+ZachBoggs@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:31:16 -0700 Subject: [PATCH] Users were complaining that the output was vauge, so I have modified the output of the operations to be more descriptive and easier for users to read in the output and in the code. closes #62 --- main.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..0efbd5e 100644 --- a/main.cpp +++ b/main.cpp @@ -12,13 +12,16 @@ int main() 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; + + // more descriptive operations that are operated on x & y + cout << x << " + " << y << " = " << (x + y) << endl; + cout << x << " - " << y << " = " << (x - y) << endl; + cout << x << " * " << y << " = " << (x * y) << endl; + cout << x << " / " << y << " = " << (x / y) << endl; + cout << x << " % " << y << " = " << (x % y) << endl; + cout << x << "^(1/2)" << " = " << sqrt(x) << endl; + cout << y << "^(1/2)" << " = " << sqrt(y) << endl; + cout << x << "^" << y << " = " << pow(x, y) << endl; return 0; }