Skip to content

Commit

Permalink
fixed divide by 0 resolves ChicoState#61
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfollmer committed Jan 31, 2024
1 parent c9c6763 commit 1ae0fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 << x << "^" << y << " = " << pow(x, y) << std::endl;
return 0;
}

0 comments on commit 1ae0fc7

Please sign in to comment.