RosettaCodeData/Task/Create-a-two-dimensional-array-at-runtime/Fermat/create-a-two-dimensional-array-at-runtime.fermat
2023-07-01 13:44:08 -04:00

6 lines
276 B
Text

?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}