DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
trailing zeros in factorial js
function zeros (n) { let cont = 0; while(n > 0){ n = Math.floor(n/5); cont += n } return cont; }
PREVIOUS
NEXT
Tagged:
#trailing
#zeros
#factorial
#js
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit