#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();
}
A Greek town with natural aquifers on the sea shore Therma Ikaria
-
On the Greek island of Ikaria there isn't just quietness, life span (it is
one of the longest-lived spots on earth), communities, and shrouded sea
shores t...
Hace 4 años