8 lines
120 B
Text
8 lines
120 B
Text
fact = {
|
|
if eq(@1, 0) {
|
|
return 1
|
|
} else {
|
|
return mul(@1, fact(sub(@1, 1)))
|
|
}
|
|
}
|
|
puts fact(7)
|