From 57e1e62bb5753c8208bde0682136c43776a5790f Mon Sep 17 00:00:00 2001 From: Ethan Harris Date: Mon, 8 Sep 2025 11:37:00 -0700 Subject: [PATCH] added correct visual display closes #62 --- main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index 958ba61..cc1e20f 100644 --- a/main.cpp +++ b/main.cpp @@ -12,13 +12,14 @@ 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 << "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 remainder of " << x % y << endl; cout << "Remainder: " << x % y << endl; - cout << "Square Root: " << sqrt(x) << endl; - cout << "Square: " << pow(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; }