Skip to content · ⁨본문 바로가기⁩

Liftoff · ⁨발사 준비 완료⁩

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.

한국어

발사(Liftoff)

5에서 1로 카운트다운한 후, Liftoff!를 출력하십시오.

while 루프는 조건이 참인 한 반복되므로, 루프 내부의 무언가가 변수를 변경하지 않으면 루프가 종료되지 않습니다. 루프 다음에 위쪽 정렬 없이 작성된 코드는 루프가 끝날 때 한 번 실행됩니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP