Skip to content

Commit

Permalink
resolved ChicoState#61
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmeyer committed Aug 30, 2023
1 parent c0f87dc commit 171378e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ int main()
std::cout << "Addition: " << x + y << std::endl;
std::cout << "Subtraction: " << x - y << std::endl;
std::cout << "Multiplication: " <<x * y << std::endl;

if(y!=0) {
std::cout << "Division: " << x / y << std::endl;
else {
std:: cout << "Dividing by zero is not a number." << endl;
}

std::cout << "Remainder: " <<x % y << std::endl;
std::cout << "Square Root: " << sqrt(x) << std::endl;
std::cout << "Square: " << pow(x, y) << std::endl;
Expand Down

0 comments on commit 171378e

Please sign in to comment.