>>527

#include <stdio.h>
#include <math.h>

int main(void){

int count ;
double n, root, buff ;

/* nの平方根を求める */
n = 2.0 ;

for ( root = 1.0 ; (root*root)<n ; root+=1.0 ){
}

for ( count = 1 ; ; count++ ){
buff = root ;
root = (root+n/root)/2 ;
if ( buff==root){
break ;
}
}

printf ( "%.16lf (%d回) \n", root, count ) ;
printf ( "%.16lf (sqrt)\n", sqrt(n) ) ;

return 0 ;
}