Julia Program to demonstrate 2D Array
Program
# Julia program to demonstrate 2D Arrays
# Creating a 2D array
# Note the semicolon used
Array = [10 20 30 ; 40 50 60]
println(Array)
Output
$ julia demo-2d-array.jl
[10 20 30; 40 50 60]
Program
# Julia program to demonstrate 2D Arrays
# Creating a 2D array
# Note the semicolon used
Array = [10 20 30 ; 40 50 60]
println(Array)
Output
$ julia demo-2d-array.jl
[10 20 30; 40 50 60]