Skip to content
K Language Document
Main Navigation
Home
Get Started
English
中文
English
中文
Appearance
Menu
Return to top
On this page
Loop
Loop as C
k
for (i := 0; i < 5; i = i + 1) {
println(i)
}
# Output:
# 0
# 1
# 2
# 3
# 4