Jump to content

Integer comparison: Difference between revisions

Add Nu
imported>Brie
(Add Nu)
Line 3,063:
Pop $0
FunctionEnd
</syntaxhighlight>
 
=={{header|Nu}}==
<syntaxhighlight lang="nu">
[First Second] | each {input $"($in) integer: "| into int} | [
[($in.0 < $in.1) "less than"]
[($in.0 == $in.1) "equal to"]
[($in.0 > $in.1) "greater than"]
] | each {if $in.0 {$"The first integer is ($in.1) the second integer."}} | str join "\n"
</syntaxhighlight>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.