Skip to content

Loop

Loop as C

k
for (i := 0; i < 5; i = i + 1) {
    println(i)
}
# Output:
# 0
# 1
# 2
# 3
# 4