You're setting answer to be a value that's equal to what its current value times base is. The '=' is not the algebraic equal sign, it is a sign that means "get".
ok...thanks alot that is alot clearer..
one last problem its taking the 2nd input scanf before the second printf how come?
Please enter a number:2
2
Please enter an exponent:4
q2 has exited with status 0.