Create a two-dimensional array at runtime: Difference between revisions
Create a two-dimensional array at runtime (view source)
Revision as of 22:27, 3 September 2022
, 1 year agoAdds slope example
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(Adds slope example) |
||
Line 2,787:
99
</pre>
=={{header|Slope}}==
<syntaxhighlight lang="slope">
(define width (string->number (read-line)))
(define height (string->number (read-line)))
(if (and width height)
(list-seed height (list-seed width #t))
(! "A non-number value was submitted"))
</syntaxhighlight>
=={{header|Smalltalk}}==
|