7 lines
111 B
Text
7 lines
111 B
Text
fact = {
|
|
if eq(@1, 1) {
|
|
return @2
|
|
}
|
|
return fact(sub(@1, 1), mul(@1, @2))
|
|
}
|
|
puts fact(7, 1)
|