1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-29 05:36:55 +02:00
Files
go_basics/part_1/1.11/5.go

28 lines
374 B
Go
Raw Normal View History

package main
import "fmt"
func main() {
for i := 0; i < 2; i++ {
for j := 0; j < 3; j++ {
if i == j {
continue
}
fmt.Printf("%d %d || ", i, j)
}
}
// 0 1 || 0 2 || 1 0 || 1 2 ||
fmt.Println()
for i := 0; i < 2; i++ {
for j := 0; j < 3; j++ {
if i == j {
break
}
fmt.Printf("%d %d || ", i, j)
}
}
fmt.Println("Oo")
// 1 0 || Oo
}