RosettaCodeData/Task/Menu/11l/menu.11l

14 lines
367 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
V items = [fee fie, huff and puff, mirror mirror, tick tock]
L
L(item) items
print(#2. #..format(L.index + 1, item))
V reply = input(Which is from the three pigs: ).trim( )
I !reply.is_digit()
L.continue
I Int(reply) C 1..items.len
print(You chose: items[Int(reply) - 1])
L.break