matrix example

This commit is contained in:
Mert Gör 🇹🇷 2024-01-10 11:23:21 +03:00
parent 208b1602f3
commit 127d81195d
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 17 additions and 1 deletions

16
arrays/demo4.go Normal file
View 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])
}

View File

@ -13,5 +13,5 @@ func main() {
fmt.Print() fmt.Print()
conditionals.Demo3() conditionals.Demo3()
loops.Demo5() loops.Demo5()
arrays.Demo3() arrays.Demo4()
} }