Skip to content

Commit 95c601d

Browse files
authored
Update func.js
1 parent 8e92109 commit 95c601d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jive/func.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ function r(n, k) {
22
return Array.from({length:k-n}, (_,i)=>n+i)
33
}
44
function fact(n){
5-
//alert. Will be worked on soon
5+
t2 = t = n ; while (t2 > 1){t2 -= 1;t *= t2}
6+
return t2
67
}

0 commit comments

Comments
 (0)