Red de conocimiento informático - Problemas con los teléfonos móviles - 5.Planificación

5.Planificación

#Contiene "stdio.h"

int main()

{

Doble a;

Doble x = 1.0;

p>

printf("Ingrese un doble \ n ");

scanf("%lf ", & ampa

If (a); & lt0) printf( "¡Error!\n ");

Otro

mientras(x * x-a & lt; -0.00001 | | x * x-a & gt; 0.00001)

{

x =(a/x+x)/2.0;

}

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

Devuelve 0;

}

Ingrese 7 y el resultado es 2.645751.