From 062557145136474487d7ee3411bd67b8db51f651 Mon Sep 17 00:00:00 2001 From: Lauren Date: Mon, 8 Sep 2025 11:28:42 -0700 Subject: [PATCH 1/2] add display at beginning, #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..9622233 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 << "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 << endl; + cout << "Square Root: " << x << "√" << y << "=" << sqrt(x) << endl; + cout << "Square: " << x << "^2" << y << "=" << pow(x, y) << endl; return 0; } From 3ffba0ede2b56365557cfd326deb2555fbf0898e Mon Sep 17 00:00:00 2001 From: Lauren Date: Mon, 8 Sep 2025 11:38:01 -0700 Subject: [PATCH 2/2] add display at beginning, #62 --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 9622233..60d329a 100644 --- a/main.cpp +++ b/main.cpp @@ -17,8 +17,8 @@ int main() cout << "Multiplication: " << x << "*" << y << "=" << x * y << endl; cout << "Division: " << x << "/" << y << "=" << x / y << endl; cout << "Remainder: " << x << "%" << y << "=" << x % y << endl; - cout << "Square Root: " << x << "√" << y << "=" << sqrt(x) << endl; - cout << "Square: " << x << "^2" << y << "=" << pow(x, y) << endl; + cout << "Square Root: " << "√" << x << "=" << sqrt(x) << endl; + cout << "Square: " << x << "^" << y << "=" << pow(x, y) << endl; return 0; }