Gehen Sie mehrdimensionales Array in Golang
// Program to illustrate multidimensional array
package main
import "fmt"
func main() {
// creating a 2 dimensional array
arrayInteger := [2][2]int{{1, 2}, {3, 4}}
// accessing the values of 2d array
for i := 0; i < 2; i++ {
for j := 0; j < 2; j++ {
fmt.Println(arrayInteger[i][j])
}
}
}
SAMER SAEID