Just add another printf, or move the existing one
If you want to print each iteration with it's number and current value, then add a line at the bottom:
printf("Iteration %d: Current value = %lf", i, p);
Otherwise, just move the existing printf outside the
if
condition:
printf("%f\n",p);
if ((FP==0)||((b-a)/2)< Tol)
{
break;
}
[edit]Changed output format from integer to float - OriginalGriff[/edit]