본문 바로가기
English

Loop while a condition is true

  • A while loop repeats as long as its condition is true.
  • It checks the condition before each pass.
  • Use it when you do not know the number of repeats in advance.

A while loop tests count < 3, runs the body while it is true, then carries on

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP