// Correction exo 4 #include #include #include int main(void) { double b,xn=0,xm=1; printf("Enterez un nombre positif:"); scanf("%lf",&b); while(fabs(xn-xm)>1e-6) { xn = xm ; xm = (xn + b/xn)/2.0 ; printf("%f %f\n",xn,xm); } printf("La racine de %f est %f a 1E-6 pres\n",b,xn); system("pause"); return 0 ; }