From f3eb4601d36eee573d0d6813dd9889d36bdab5cf Mon Sep 17 00:00:00 2001 From: Colby Sax Date: Mon, 8 Sep 2025 11:37:19 -0700 Subject: [PATCH] displays full math operations, closes #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..3a2414b 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 << "Divison: " << 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; }