#include
#include
main ()
{
float n,rb,ra,dif;
rb=1;
printf("Introduce el numero");
scanf("%f",&n);
ra=(rb+n/rb)/2;
if (rb>ra)
dif=rb-ra;
else
dif=ra-rb;
while (dif>0.00001)
{
rb=ra;
ra=(rb+n/rb)/2;
if (rb>ra)
dif=rb-ra;
else
dif=ra-rb;
}
printf("La raiz cuadrada de %f es %f",n,ra);
getch();
}
One of the most astonishing old town on the planet Old City of Jerusalem
-
Jerusalem is perhaps the most established city on the planet . By measuring
its history and its multifaceted nature, on the off chance that we think
about ...
Hace 5 años