Well, all you ever set the value of answer to is mantissa*mantissa so what did you expect?

Put your code aside. Take a paper and write down the steps to get a power in simple English (or your...