9 lines
141 B
Text
9 lines
141 B
Text
factorial3[x] :=
|
|
{
|
|
if x <= 1
|
|
return 1
|
|
else
|
|
return x * factorial3[x-1] // function calling itself
|
|
}
|
|
|
|
println[factorial3[5]]
|