Write factorial(n) using a while loop. factorial(0) is 1.
factorial(n)
factorial(0)
factorial(5) → 120
factorial(0) → 1
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.