Considering your power method...
Why are you checking to see if
initialnum == initialnum ? A mathematician would likely know for sure, but I think that it's the identity theorem that always makes such an expression true - a number always equals itself. So, this will always evaluate to be true.
Let me be blunt. Your for-loop is completely wrong. Also, your power method doesn't have enough information to perform such an operation properly. Remember, the power function requires two operands - one which I'll call the base number and the other which is the power to which the base number is to be raised.
Think for a moment about the power function, and perhaps the
pattern of a proper for-loop shall become clearer.
What happens when we raise a number, x, to 2? Simple. Multiply x by itself one time - x * x.
What happens when we raise a number, x, to 3? Again, simple. Multiply x by itself two times - x * x * x.
What happens when we raise a number, x, to 4? Multiply x by itself three times - x * x * x * x.
And What happens when we raise a number, x, to the number, n? Well, multiply x by itself n - 1 times is likely the pattern that has revealed itself.
So, is the solution becoming clearer?