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

14 lines
367 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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