RosettaCodeData/Task/Nested-function/Ring/nested-function.ring
2023-07-01 13:44:08 -04:00

13 lines
324 B
Text

# Project : Nested function
makeList(". ")
func makeitem(sep, counter, text)
see "" + counter + sep + text + nl
func makelist(sep)
a = ["first", "second", "third"]
counter = 0
while counter < 3
counter = counter + 1
makeitem(sep, counter, a[counter])
end