github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/cont1.gno (about)

     1  package main
     2  
     3  func main() {
     4  	i := 0
     5  	for {
     6  		if i > 10 {
     7  			break
     8  		}
     9  		if i < 5 {
    10  			i++
    11  			continue
    12  		}
    13  		println(i)
    14  		i++
    15  	}
    16  }
    17  
    18  // Output:
    19  // 5
    20  // 6
    21  // 7
    22  // 8
    23  // 9
    24  // 10