about | help | code help+videos | done | prefs |
Compute the factorial of a number. For example, factorial(5) = 5 * 4 * 3 * 2 * 1. Note: factorial(0) is defined as 1. Note that this method returns a value of type long. factorial(5) → 120 factorial(0) → 1 factorial(8) → 40320 ...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: 100
Copyright Nick Parlante 2017 - privacy