Weird but true pow(x,y) function

If you are only going to use integers (which is what it seems like you are doing), its easy to create a new power function.

int powint(int x, int y)
{
  if (y==0)
    return(1);
  else
    return(power(x,y-1)*x);
}