RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/Fermat/create-a-two-dimensional-array-at-runtime.fermat

7 lines
276 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
?m; {imput the dimensions of the array}
?n;
Array a[m,n]; {generate an array of m rows and n columns}
a[m\2, n\2] := m+n-1; {put some value in one of the cells}
!!a[m\2, n\2]; {display that entry}
@[a]; {delete the array}