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)

16th Jun 2017, 8:49 PM
Obumneme Anichebe
Obumneme Anichebe - avatar
1 Resposta
- 1
Use a while statement that while x is less then numbers factorial and attach to a dictionary
17th Jun 2017, 1:55 AM
NulledNVoided
NulledNVoided - avatar