mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
25 lines
266 B
Go
25 lines
266 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
outer:
|
|
for y := 0; y < 10; y++ {
|
|
for x := 0; x < 10; x++ {
|
|
if x == 5 && y == 5 {
|
|
break outer
|
|
}
|
|
}
|
|
fmt.Println(y)
|
|
}
|
|
fmt.Println("Yay! I finished!")
|
|
}
|
|
|
|
// Output:
|
|
// 0
|
|
// 1
|
|
// 2
|
|
// 3
|
|
// 4
|
|
// Yay! I finished!
|