main()
{
float x = 0.1;
float temp;
float a, b;
double e = 0.00001;
int N = 100;
int i;
printf("Please enter the denominator and numerator:");
scanf("%f %f", &a, &b);
for(i = 0; i < N; i++)
{
temp = interation(x, a);
if((fabs(temp - x)) < e)
{
printf("the result is: %f \n", b * x);
return 0;
}
else
x = temp;
}
printf("Could not get the result.");
return 1;
}