Skip to content

Iteration: WHILE and REPEAT · ⁨迭代:WHILE 与 REPEAT⁩

English

WHILE tests before each pass

  • A WHILE loop checks its test before each pass.
  • If the test is false at the start, the body runs zero times.
  • The block ends at ENDWHILE.
中文

WHILE 在每一轮之前测试

  • WHILE 循环在每一轮之前检查它的测试。
  • 如果一开始测试就为假,循环体运行零次。
  • 代码块以 ENDWHILE 结束。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩