Create a two-dimensional array at runtime: Difference between revisions

Content added Content deleted
(Added various BASIC dialects (Chipmunk Basic, GW-BASIC, Minimal BASIC, MSX Basic and XBasic))
No edit summary
Line 2,907: Line 2,907:
33
33
</pre>
</pre>

=={{header|Prolog}}==
{{works with|SWI Prolog}}
<syntaxhighlight lang="prolog">:- dynamic array/2.

run :-
write('Enter two positive integers, separated by a comma: '),
read((I,J)),
assert(array(I,J)),
Value is I * J,
format('a(~w,~w) = ~w', [I, J, Value]),
retractall(array(_,_)).</syntaxhighlight>


=={{header|Python}}==
=={{header|Python}}==