| about | help | code help+videos | done | prefs |
Define the function factorial, that when passed an integer (say, n), returns the product of all positive integers from 1 to n (including n). Return 1 if n < 1. factorial(4) → 24 factorial(0) → 1 factorial(10) → 3628800 ...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: 2 Post-solution available
Copyright Nick Parlante 2017 - privacy