Integer comparison: Difference between revisions
Integer comparison with switch/case in Rapira
Puppydrum64 (talk | contribs) |
(Integer comparison with switch/case in Rapira) |
||
Line 3,362:
<lang perl6>say prompt("1st int: ") <=> prompt("2nd int: ");</lang>
=={{header|Rapira}}==
<lang Rapira>output: "Enter two integers, a and b"
input: a
input: b
case
when a > b:
output: "a is greater than b"
when a < b:
output: "a is less than b"
when a = b:
output: "a is equal to b"
esac</lang>
=={{header|Raven}}==
|