Question: C++ provides a math function called pow(x, y). Write your own function power with the following signature: int power(int x, int y) The function above
C++ provides a math function called pow(x, y). Write your own function power with the following signature: int power(int x, int y) The function above should calculate and return xY without using the available pow function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
