Liftoff · Decolagem
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.
Decolagem
Conte regressivamente de 5 a 1, depois imprima Liftoff!.
Um loop while repete enquanto sua condição for verdadeira, então algo dentro do loop deve alterar a variável, ou o loop nunca termina. Código escrito depois do loop, sem indentação, roda uma vez quando o loop termina.
Use a while loop to count down from 5 to · até 1, one number per line, then print Liftoff!. · Use um loop while para contar regressivamente de 5 a 1, um número por linha, depois imprima Liftoff!.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.