# include # include main(){double m,n=1.0,a;printf("请输入a:");scanf("%lf",a);do{m=n;n= (m + a/m) / 2; }while(fabs(n-m)>1e-5);printf("结果为:%7.5f\n",n);}