mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
15 lines
218 B
Text
15 lines
218 B
Text
|
|
fun f (x) {
|
||
|
|
fun inner1 (y) {
|
||
|
|
return if y == 0 then 0 else inner2 (y-1) fi
|
||
|
|
}
|
||
|
|
|
||
|
|
fun inner2 (y) {
|
||
|
|
return if y == 0 then 0 else inner1 (y-1) fi
|
||
|
|
}
|
||
|
|
|
||
|
|
return inner1 (x)
|
||
|
|
}
|
||
|
|
|
||
|
|
local n = read ();
|
||
|
|
|
||
|
|
write (f (5))
|