From d17d440eead8327e1dbae641f16f66d5f3a0b09c Mon Sep 17 00:00:00 2001 From: Ryan Kaschmitter Date: Mon, 8 Sep 2025 11:28:40 -0700 Subject: [PATCH 1/2] added display for math, closes #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..7056387 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 6171ef19c5f03b69240f6569a75669cd02794f33 Mon Sep 17 00:00:00 2001 From: Ryan Kaschmitter Date: Mon, 8 Sep 2025 11:35:51 -0700 Subject: [PATCH 2/2] added display for the math, closes #62 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 7056387..fb4cc66 100644 --- a/main.cpp +++ b/main.cpp @@ -9,7 +9,7 @@ int main() { cout << "Hi, please enter two whole numbers: "; - int x,y; + int x, y; cin >> x >> y; cout << x << "+" << y << "=" << x + y << endl;