Este explorador ya no se admite.
Actualice a Microsoft Edge para aprovechar las características y actualizaciones de seguridad más recientes, y disponer de soporte técnico.
Which loop is best suited when you know in advance how many times you want to repeat an action?
while loop
for loop
if statement
Which loop type guarantees that its body runs at least once, even if the condition is false from the start?
do-while loop
What does the break statement do inside a loop?
Skips the current iteration and moves to the next one.
Restarts the loop from the beginning.
Exits the loop immediately, regardless of the loop condition.
What does the continue statement do inside a loop?
Exits the loop immediately.
Skips the rest of the current iteration and moves to the next one.
Pauses the loop until the user presses a key.
You must answer all questions before checking your work.
¿Le ha resultado útil esta página?
¿Necesita ayuda con este tema?
¿Desea intentar usar Ask Learn para aclarar o guiarle a través de este tema?