github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/for1.gno (about) 1 package main 2 3 func main() { 4 i := 0 5 for i < 10 { 6 if i > 4 { 7 break 8 } 9 println(i) 10 i++ 11 } 12 } 13 14 // Output: 15 // 0 16 // 1 17 // 2 18 // 3 19 // 4