repeat ... until 迴圈在底部檢查條件,保證迴圈體至少執行一次,類似其他語言的 do-while。
repeat
statement(s)
until condition
statement(s)。condition。a = 10
repeat
print("value of a:", a)
a = a + 1
until a > 15
value of a: 10
value of a: 11
value of a: 12
value of a: 13
value of a: 14
value of a: 15