Integer comparison: Difference between revisions

Content added Content deleted
imported>Brie
(Add Nu)
Line 3,063: Line 3,063:
Pop $0
Pop $0
FunctionEnd
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>
</syntaxhighlight>