We're going to have our "while" loop where the test condition is as long as "n" is greater than equal to one.
Vamos a tener nuestro bucle while donde la condión de prueba es mientras n sea mayor o igual que uno.
The third choice is a "while" loop with a nested "if."
La tercera opción es un bucle while con un if anidado
The loop test is never True - that means the "while" loop just keeps going forever and ever, never finishing.
La prueba del bucle nunca es verdadera, eso significa que bucle while continúa ejecutándose para siempre, nunca termina.
The first one is a "while" loop with a nested "if."
La primera es un bucle while con un if anidaddo
So now when I type return one more time, this "while" loop will start running, and we'll see it print out the numbers and it will keep going as long as we let it keep going.
Entonces cuando digito return una vez más, este bucle while empezará a ejecutar, Y veremos que muestra los números Y seguirá ejecutándose mientras le permitamos ejecutarse.
Now, instead of having the "while test" stop the loop, we'll make the
Ahora, en lugar de tener la prueba de while para detener el bucle, haremos
Because the condition is evaluated after the code block, a "do... while" loop, unlike a normal while loop, will always execute at least once.
Como la condición es evaluada tras el bloque, un bucle "do... while", al contrario que un bucle while normal, siempre se ejecuta al menos una vez.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple