From 09c7b2993eac5304d765f4b0baef6983bb548f93 Mon Sep 17 00:00:00 2001 From: Ashley DelRosario Date: Mon, 8 Sep 2025 11:34:49 -0700 Subject: [PATCH 1/3] comments, closes #62 --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index 958ba61..78130b8 100644 --- a/main.cpp +++ b/main.cpp @@ -5,6 +5,8 @@ using std::cin; using std::cout; using std::endl; +//Lecture 09/08 + int main() { cout << "Hi, please enter two whole numbers: "; From 005a5b5376e249304065647c9cdece7f8aa37ca2 Mon Sep 17 00:00:00 2001 From: Ashley DelRosario Date: Mon, 8 Sep 2025 11:44:44 -0700 Subject: [PATCH 2/3] fixed issue, closes #62 --- main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 78130b8..89ad575 100644 --- a/main.cpp +++ b/main.cpp @@ -14,11 +14,10 @@ int main() int x,y; cin >> x >> y; - cout << "Addition: " << x + y << endl; - cout << "Subtraction: " << x - y << endl; + cout << "Addition: " << x << "+" << y << "= " << x + y << endl; + cout << "Subtraction: " << x << "-" << y << "= " << x - y << endl; cout << "Multiplication: " << x * y << endl; - cout << "Division: " << x / y << endl; - cout << "Remainder: " << x % y << endl; + cout << "Division: " << x / y << " with remainder of " << x % y << endl; cout << "Square Root: " << sqrt(x) << endl; cout << "Square: " << pow(x, y) << endl; From 91c473475d9b6e9fd0f372d0548e7134173dbbb4 Mon Sep 17 00:00:00 2001 From: Ashley DelRosario Date: Mon, 8 Sep 2025 12:04:46 -0700 Subject: [PATCH 3/3] fixed issues, closes #62 --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 89ad575..e03de66 100644 --- a/main.cpp +++ b/main.cpp @@ -14,9 +14,9 @@ int main() int x,y; cin >> x >> y; - cout << "Addition: " << x << "+" << y << "= " << x + y << endl; - cout << "Subtraction: " << x << "-" << y << "= " << x - y << endl; - cout << "Multiplication: " << 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 << " with remainder of " << x % y << endl; cout << "Square Root: " << sqrt(x) << endl; cout << "Square: " << pow(x, y) << endl;