lama_byterun/regression/test057.lama

12 lines
192 B
Text
Raw Normal View History

fun a (x) {return x + 1}
fun b (x) {return x + 2}
fun c (x) {return x + 3}
{
local funs = [a, b, c];
local n = read (), i;
for i := 0, i < 3, i := i+1 do
write (funs[i] (n))
od
}