0
What's the best way to code this
Write a recursive function which can compute the factorial of a given number from the console. The result should be a tuple of the answer and a dictionary of the number of digits occurrence.( eg (40320, (4:1,0:2,3:1,2:1)
1 Answer
- 1
Use a while statement that while x is less then numbers factorial and attach to a dictionary