mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
12 lines
No EOL
192 B
Text
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
|
|
} |