Answers for "Factorialize a Number"

0

Factorialize a Number

function factorialize(num) {
  for (var product = 1; num > 0; num--) {
    product *= num;
  }
  return product;
}

factorialize(5);
Posted by: Guest on July-31-2021

Code answers related to "Factorialize a Number"

Browse Popular Code Answers by Language