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