Skip to content · ⁨Saltar al contenido⁩

Liftoff · ⁨Despegue⁩

English

Liftoff

Count down from 5 to 1, then print Liftoff!.

A while loop repeats as long as its condition is true, so something inside the loop must change the variable, or the loop never stops. Code written after the loop, without indentation, runs once when the loop ends.

Español

Despegue

Cuenta regresiva desde 5 hasta 1, luego imprime Liftoff!.

Un bucle while se repite mientras su condición sea verdadera, por lo que algo dentro del bucle debe modificar la variable, de lo contrario el bucle nunca se detendrá. El código escrito después del bucle, sin sangría, se ejecuta una sola vez cuando termina el bucle.

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP