Skip to content

Instantly share code, notes, and snippets.

@jeanluc243
Created April 8, 2020 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanluc243/bb8bbaca7d3d862ff4de90fe2c47489a to your computer and use it in GitHub Desktop.
Save jeanluc243/bb8bbaca7d3d862ff4de90fe2c47489a to your computer and use it in GitHub Desktop.
double expontentiate(double firstNum, double secondNum) {
// Math.pow returns a double, so use typecasting to account for large numbers
double exponentProd = pow(firstNum, secondNum);
return exponentProd;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment