about | help | code help+videos | done | prefs |
The double factorial of an odd positive integer n is the product of all the odd integers up to that integer. The sequence of double factorials for n = 1, 3, 5, 7, 9, 11, 13 ... is 1, 3, 15, 105, 945, 10395, 135135,... Note that n will always be an odd number. doubleFactorial(1) → 1 doubleFactorial(3) → 3 doubleFactorial(5) → 15 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 291
Copyright Nick Parlante 2017 - privacy