mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:11:49 +08:00
05.0.md
This commit is contained in:
17
eBook/examples/chapter_5/for6.go
Normal file
17
eBook/examples/chapter_5/for6.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
|
||||
LABEL1:
|
||||
for i := 0; i <= 5; i++ {
|
||||
for j := 0; j <= 5; j++ {
|
||||
if j == 4 {
|
||||
continue LABEL1
|
||||
}
|
||||
fmt.Printf("i is: %d, and j is: %d\n", i, j)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user