Create a two-dimensional array at runtime: Difference between revisions
Create a two-dimensional array at runtime (view source)
Revision as of 18:30, 28 February 2024
, 3 months agoAdded Easylang
imported>Arakov |
(Added Easylang) |
||
Line 1,658:
Column 08 = 10 rows
Column 09 = 02 rows</pre>
=={{header|EasyLang}}==
<syntaxhighlight>
write "Number of rows: "
nrows = number input
print nrows
write "Number of columns: "
ncols = number input
print ncols
#
len a[][] nrows
for i to nrows
len a[i][] ncols
.
a[1][1] = 11
print a[1][1]
len a[][] 0
</syntaxhighlight>
=={{header|Elena}}==
|