RosettaCodeData/Task/Integer-comparison/YAMLScript/integer-comparison.ys

9 lines
145 B
Plaintext

!YS-v0
defn main(x y):
say:
cond:
x < y: "$x is less than $y"
x > y: "$x is greater than $y"
else : "$x is equal to $y"