5 lines
101 B
Text
5 lines
101 B
Text
function f=factorrec(n)
|
|
if n==0 then f=1
|
|
else f=n*factorrec(n-1)
|
|
end
|
|
endfunction
|