RosettaCodeData/Task/Conditional-structures/Arturo/conditional-structures-2.arturo
2023-07-01 13:44:08 -04:00

7 lines
241 B
Text

loop 1..5 'num [
case [num]
when? [<2] -> print [num ": it's less than 2"]
when? [=2] -> print [num ": it's 2!"]
when? [=3] -> print [num ": it's 3!"]
else -> print [num ": the number is too big"]
]