Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Integer-comparison/Red/integer-comparison.red
Normal file
14
Task/Integer-comparison/Red/integer-comparison.red
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Red [
|
||||
Title: "Comparing Two Integers"
|
||||
URL: http://rosettacode.org/wiki/Comparing_two_integers
|
||||
Date: 2021-10-25
|
||||
]
|
||||
|
||||
a: to-integer ask "First integer? " b: to-integer ask "Second integer? "
|
||||
|
||||
relation: [
|
||||
a < b "less than"
|
||||
a = b "equal to"
|
||||
a > b "greater than"
|
||||
]
|
||||
print [a "is" case relation b]
|
||||
Loading…
Add table
Add a link
Reference in a new issue