#include<stdio.h> #include<math.h> int main(void) { double x,y=1,t; scanf("%lf",&x); while(1) { t=(y+x/y)/2; if(fabs(t-y)<0.0001*t) break; else y=t; } printf("sqrt(%g)=%f",x,t); return 0; }