Untitled
unknown
plain_text
4 years ago
531 B
8
Indexable
define function reveal(some_array, n):
if n is 1 {
display ascii character for some_array[0]
display "21"
}
otherwise {
display ascii character for some_array[n-1]
run reveal(some_array, count-1)
}
define function main():
set codes to [48, 50, 32, 108, 108, 97, 70, 32, 100, 108, 114, 111, 87, 32, 114, 101, 98, 121, 67];
// with codes[0] being 48, codes[1] being 50, etc.
set count to number of elements in codes
run reveal(codes, count)
main()Editor is loading...