From 6fea83c2098ee2458d992005b4a8471cae57e958 Mon Sep 17 00:00:00 2001 From: nbook-chico Date: Mon, 8 Sep 2025 11:32:12 -0700 Subject: [PATCH] Display added when ran, closes #62 --- main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.cpp b/main.cpp index 958ba61..1781c1e 100644 --- a/main.cpp +++ b/main.cpp @@ -12,6 +12,7 @@ int main() int x,y; cin >> x >> y; + /* cout << "Addition: " << x + y << endl; cout << "Subtraction: " << x - y << endl; cout << "Multiplication: " << x * y << endl; @@ -19,6 +20,15 @@ int main() 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 << " remainder: " << x%y << endl; + cout << "Square root of x = " << sqrt(x) << endl; + cout << "Square root of y = " << sqrt(y) << endl; + cout << x << "^" << y << " = " << pow(x,y) << endl; return 0; }