Write a program that computes for x raised to y. Your program must have a function called my_power that takes two integer arguments – the first being the base and the second being the exponent. It returns an integer result which is the computed base raised to exponent value.
Note: You are not allowed to use the pre-defined pow function.
INPUT FORMAT
Input contains arbitrary pairs of integers x and y, where x is the base and y is the exponent.
OUTPUT FORMAT
For each pair, compute for x raised to y. Output should be separated by a new line.
PROGRAM SPECIFICATION
Program must contain at least one function other than main.
CONSTRAINTS
1 <= x <= 10
0 <= y < 10