Given integers
number and exponent. Write a function int Power(int number, int exponent) that raises number to the power of exponent.Example 1
Input: number = 2, exponent = 3
Output: 8
Explanation: 2 to the power of 3 = 2 * 2 * 2 = 8
Output: 8
Explanation: 2 to the power of 3 = 2 * 2 * 2 = 8
Example 2
Input: number = 2, exponent = 5
Output: 32
Explanation: 2 to the power of 5 = 2 * 2 * 2 * 2 * 2 = 32
Output: 32
Explanation: 2 to the power of 5 = 2 * 2 * 2 * 2 * 2 = 32
Example 3
Input: number = 5, exponent = 0
Output: 1
Explanation: Any number to the power of 0 equals 1
Output: 1
Explanation: Any number to the power of 0 equals 1