#include #include float f(float x)return (x*x+2*x+1);void main()float x0,h,x1,x2,x3;printf (“x0,h“);scanf (“%f %f %f %f %f“,if (f(x0)f(x0+h)h=2*h; x2=x1+h;else h=-h;h=2*h,x2=x1+h;while(f(x1)f(x2);h=2*h;x3=x2+h;x1=x2,x2=x3;printf (“x0=%f,x3=%fn“,x0,x3);