Calculate Exponentials
Create a recursive function to calculate the a value of a certain exponent.
Use the following incomplete function definition:
int power(int base, int exp) {
// ...
}
- Previous
- Next
Create a recursive function to calculate the a value of a certain exponent.
Use the following incomplete function definition:
int power(int base, int exp) {
// ...
}