Answers for "trailing zeros in factorial js"

0

trailing zeros in factorial js

function zeros (n) {
  let cont = 0;
  while(n > 0){
    n = Math.floor(n/5);
    cont += n
  }
  return cont;
}
Posted by: Guest on October-13-2021

Code answers related to "trailing zeros in factorial js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language