Created
April 8, 2020 13:49
-
-
Save jeanluc243/bb8bbaca7d3d862ff4de90fe2c47489a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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