Thank you for your help! Actually, they are forcing us to write it in
iterative version. We shouldn't write the program so that we compute
factorial and then power of x and then divide them.

Here's my factorial program:
int main()
{
  int n;
  scanf("%d", &n);
  int j = 1;
  int i;

  for(i = 1; i <= n; i++)
  {
    j = i*j;
  }

    printf("%d", j);
}

I've written square root function...but I'm not quite sure how to
write pow function, I will have to look into that.

It's not really the first line of the program, I have quite a few
already (and they work :D) but I'm still struggling with how loops and
arguments are working together. The approximation we have to implement
is confusing. 

*snip*


Reply via email to