diff --git a/main.cpp b/main.cpp index a495fc9..93e1b2a 100644 --- a/main.cpp +++ b/main.cpp @@ -9,13 +9,15 @@ int main() int x,y; std::cin >> x >> y; - std::cout << "Addition: " << x + y << std::endl; - std::cout << "Subtraction: " << x - y << std::endl; - std::cout << "Multiplication: " << x * y << std::endl; - std::cout << "Division: " << x / y << std::endl; - std::cout << "Remainder: " << x % y << std::endl; - std::cout << "Square Root: " << sqrt(x) << std::endl; - std::cout << "Square: " << pow(x, y) << std::endl; + std::cout << "Addition: " << x << "+" << y << " = " << x + y << std::endl; + std::cout << "Subtraction: " << x << "-" << y << " = " << x - y << std::endl; + std::cout << "Multiplication: " << x << "*" << y << " = " << x * y << std::endl; + std::cout << "Division: " << x << "/" << y << " = " << x / y << std::endl; + std::cout << "Remainder: " << x << "%" << y << " = " << x/y << " with remainder of " << x % y << std::endl; + std::cout << "Square Root of " << x << " is " << sqrt(x) << std::endl; + std::cout << "Square Root of " << y << " is " << sqrt(y) << std::endl; + std::cout << x << "Squared is " << pow(x, 2) << std::endl; + std::cout << y << "Squared is " << pow(y, 2) << std::endl; return 0; }