matrix example
This commit is contained in:
parent
208b1602f3
commit
127d81195d
16
arrays/demo4.go
Normal file
16
arrays/demo4.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package arrays
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Demo4() {
|
||||
var numbers [2][3]int
|
||||
|
||||
numbers[0][0] = 1
|
||||
numbers[0][1] = 3
|
||||
numbers[0][2] = 5
|
||||
numbers[1][0] = 2
|
||||
numbers[1][1] = 4
|
||||
numbers[1][2] = 6
|
||||
|
||||
fmt.Println(numbers[1][1])
|
||||
}
|
Loading…
Reference in New Issue
Block a user