Here is an example of using a while loop where the code repeats until the value gets close enough to zero
Este es un ejemplo del uso del bucle while donde el código se repite hasta que el valor se acerca lo suficiente a cero
Execute repeatedly until a break condition is encountered (also known as a While loop).
Ejecutar repetidamente hasta que se encuentre una condición de interrupción (también conocido como bucle While).
If you want to keep retrying, run tip in a while loop.
This sounds like something that is going to need a while loop.
When that's the case, we can use a different structure: a while loop.
Similarly, a while loop will execute the commands in its body for as long as its condition is true.
De forma similar, un ciclo while ejecutará los comandos de su cuerpo mientras su condición sea verdadera.
The user may want to change structural aspects, such as converting a while loop to a for loop.
El usuario puede cambiar algunos aspectos estructurales, como por ejemplo, convertir un ciclo while a un ciclo for.
Another such error can occur if a do-while loop is used in place of a while loop (or vice versa.)
El mismo error puede ocurrir si un cicle do-while se usa en vez de un ciclo while o viceversa.
It's easy for a while loop to get out of control!
¡Es fácil para un ciclo while salirse de control!
A while loop is a common control structure in many languages.
Un bucle while es una estructura de control común en muchos lenguajes.
A while loop's conditional is separated from code by the reserved word do, a newline, backslash \, or a semicolon;.
Un tiempo de bucle condicional se separa de código por la palabra reservada hacer, una nueva línea, la barra invertida \, o un punto y coma;.
A while loop will continue to execute as long as the condition in the parenthesis is logically true.
El bucle while continuará ejecutándose mientras la condición en el paréntesis sea true.
A while loop keeps executing its body till given condition is true.