lama_byterun/regression/test057.expr
2019-09-22 22:25:05 +03:00

12 lines
No EOL
192 B
Text

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
}