This commit is contained in:
2026-06-11 12:38:01 -06:00
parent 4f12bcc476
commit a9aca0f00b
2 changed files with 10 additions and 3 deletions

View File

@@ -4,5 +4,7 @@ function w $factorial (w %n, w %acc) {
@z
ret %acc
@nz
tail
%n_next =w sub %n, 1
%acc_next =w mul %n, %acc
tail $factorial (w %n_next, w %acc)
}