Given two positive integer numbers, base B and power P, write a program to find the value of B to the power of P.
Note: Don't use Math.pow function, use loops.
3 2
9
3 to the power of 2 =
3 * 3 =
9
2 4
16
2 to the power of 4 =
2 * 2 * 2 * 2 =
16
5 6
15625
5 to the power of 6 =
5 * 5 * 5 * 5 * 5 * 5 =
15625
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.