This is an interesting problem that I did to polish up my coding + analytical skills. I required to get the factorial of any number (1 to 15 here). Because you need to handle large numbers this had to be done via a custom multiplier.
Given the first few factorials:
Source : http://www.cstutoringcenter.com/problems/problems.php?id=1
Given the first few factorials:
1! = 1 2! = 2 x 1 = 2 3! = 3 x 2 x 1 = 6 4! = 4 x 3 x 2 x 1 = 24What is the sum of the first 15 factorials, NOT INCLUDING 0!?
Source : http://www.cstutoringcenter.com/problems/problems.php?id=1
Rendering...
Comments
Post a Comment