Skip to content

Commit

Permalink
Resolved issue ChicoState#61
Browse files Browse the repository at this point in the history
  • Loading branch information
eavadney committed Aug 30, 2023
1 parent 48adf7f commit 4663745
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ int main()
cout << "Addition: " << x + y << endl;
cout << "Subtraction: " << x - y << endl;
cout << "Multiplication: " <<x * y << endl;
cout << "Division: " << x / y << endl;
if (y == 0) {
cout << "Dividing by zero is not a number" << endl;
}
else {
cout << "Division: " << x / y << endl;
}
cout << "Remainder: " <<x % y << endl;
cout << "Square Root: " << sqrt(x) << endl;
cout << "Square: " << pow(x, y) << endl;
Expand Down

0 comments on commit 4663745

Please sign in to comment.