From c986bb694b0c823fe2f66eaea4b237a068e0567a Mon Sep 17 00:00:00 2001 From: Erik Siemsen Date: Mon, 8 Sep 2025 11:35:46 -0700 Subject: [PATCH] Display fix, closes #62 --- main.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..e92e76f 100644 --- a/main.cpp +++ b/main.cpp @@ -12,13 +12,15 @@ 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; + 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 << endl; + cout << "Remainder: " << x << "%" << y << " = " << x/y << " with remainder of " << x % y << endl; + cout << "Square Root of " << x << " is " << sqrt(x) << endl; + cout << "Square Root of " << y << " is " << sqrt(y) << endl; + cout << x << "Squared is " << pow(x, 2) << endl; + cout << y << "Squared is " << pow(y, 2) << endl; return 0; }