#include <stdio.h>

int main(void)
{
int i;
double a = 10.0, x = 2.0;

for(i = 0; i < 10; i++) x = (x + a / x) / 2;

printf("%f\n", x);

return 0;
}