Question: A program with a method called pow that accepts a base and an exponent as parameters and returns the base raised to the given power.
A program with a method called pow that accepts a base and an exponent as parameters and
returns the base raised to the given power. For example, the call pow(3,4) should return 3*3*3*3, or 81.
Assume that the base and exponent are non-negative. Do not use Math class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
