From 69cfa2e9759f56359e4aeb6d39cdaed75d6d65d8 Mon Sep 17 00:00:00 2001 From: jkfreeman1 Date: Mon, 8 Sep 2025 11:26:26 -0700 Subject: [PATCH] closing math display closes #62 --- main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..57d0659 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 << " with a remainder of " << x % y << endl; + cout << "Square root of " << x << " is " << sqrt(x) << endl; + cout << "Square root of " << y << " is " << sqrt(x) << endl; + cout << "Square: " << x << "^" << y << "=" << pow(x, y) << endl; return 0; -} +} \ No newline at end of file