From 9aff5c43eea6cdda8fa3bfdba7adac8a742a7559 Mon Sep 17 00:00:00 2001 From: stakacs2021 Date: Mon, 8 Sep 2025 11:25:51 -0700 Subject: [PATCH 1/2] completed full math display closes #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..3960b4d 100644 --- a/main.cpp +++ b/main.cpp @@ -12,13 +12,13 @@ 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 << x << "+" << y << "=" << x + y << endl; + cout << x << "-" << y << "=" << x - y << endl; + cout << x << "*" << y << "=" << x * y << endl; + cout << 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 << x << "^" << y << "=" << pow(x, y) << endl; return 0; } From 756036457f85740fe31ebc8a2b34eb98ff0b9c45 Mon Sep 17 00:00:00 2001 From: stakacs2021 Date: Mon, 8 Sep 2025 11:30:32 -0700 Subject: [PATCH 2/2] actually completed full math display closes #62 --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 3960b4d..6608fb9 100644 --- a/main.cpp +++ b/main.cpp @@ -15,9 +15,9 @@ int main() cout << x << "+" << y << "=" << x + y << endl; cout << x << "-" << y << "=" << x - y << endl; cout << x << "*" << y << "=" << x * y << endl; - cout << 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 << 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 << x << "^" << y << "=" << pow(x, y) << endl; return 0;