From 311b1db47230e76315b59b5873a62b78c82a29ab Mon Sep 17 00:00:00 2001 From: Matthew Hernandez Date: Mon, 8 Sep 2025 14:48:13 -0700 Subject: [PATCH] Displays type of calculation and operation; closes #62 --- main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..9007949 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 remainder of " << x % y << endl; + cout << "Square Root: Square root of " << x << " is " << sqrt(x) << endl; + cout << "Square Root: Square root of " << y << " is " << sqrt(y) << endl; + cout << x << "^" << y << "=" << pow(x, y) << endl; return 0; }