8 lines
274 B
Text
8 lines
274 B
Text
|
|
⋕&sc &pf "Enter a width: "
|
|||
|
|
⋕&sc &pf "Enter a height: "
|
|||
|
|
˜↯0⊟ # create 2D array filled with 0
|
|||
|
|
⍜⊡⋅3 1_2 # store 3 at row 1, col 2
|
|||
|
|
⟜&s # show array non-destructively
|
|||
|
|
⊡1_2 # retrieve element at row 1, col 2
|
|||
|
|
# this also destroys the array
|