Arithmetic/Integer: Difference between revisions

Content added Content deleted
(→‎{{header|Kotlin}}: Removed error handling (as specified by the task) and made the code use the Kotlin standard library instead of the Java standard library.)
(→‎min: update)
Line 3,329: Line 3,329:


=={{header|min}}==
=={{header|min}}==
{{works with|min|0.19.3}}
{{works with|min|0.37.0}}
<syntaxhighlight lang="min">(concat dup -> ' prepend "$1 -> $2" swap % puts!) :show
<syntaxhighlight lang="min">('+ '- '* 'div 'mod)
(("Enter an integer" ask integer) 2 times) quote-map =>

("Enter an integer" ask int) 2 times ' prepend
("$1 -> $2" rollup concat dup -> quote prepend %) prepend
('+ '- '* 'div 'mod) quote-map ('show concat) map cleave</syntaxhighlight>
map "\n" join puts!</syntaxhighlight>
{{out}}
{{out}}
<pre>
<pre>