Skip to content

Commit

Permalink
fixed Nan resolves ChicoState#61
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfollmer committed Jan 31, 2024
1 parent 3b336d4 commit 7f98709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int main()
std::cout << x << " * " << y << " = " << x*y << std::endl;
if(y == 0)
{
std::cout << "Dividing by 0 is not a number"
std::cout << "Dividing by 0 is not a number" << endl;
}
else
{
Expand All @@ -24,6 +24,7 @@ int main()
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 << "^" << y << " = " << pow(x, y) << std::endl;
std::cout << "plz\n";

return 0;
}

0 comments on commit 7f98709

Please sign in to comment.