#include<stdio.h>
/Calculate j(10) from j(0)
int main()
{
int n;
double j=0.6;
printf("forward iterations\n");
printf("initial estimate:j(0)=%g\n",j);
for(n=1,n<=10,n++)
j=1-(j*n);
printf("j(%d)=%g\n",n,j);
}
return 0;
}
this code is not helping me find roots of( x*x-2).What do I need to change?