Another interesting problem that we are going to tackle is how to calculate the factorial digit sum. In this program, we need to solve this: find the sum of the digits in the number 100.
This is a perfect problem to build a solution for because it combines a number of topics that we have learned in this Ruby programming course. I would even suggest you try building the program yourself before we head to the solution as this will give you a hands-on feel of Ruby algorithm development. You have all the knowledge needed to build it.
If you get stuck, don't worry! We will still build it together.
If you're new to factorials, the question is self-explanatory. A factorial is a number that is the multiplied value of itself as well as all the digits up to 1. Factorials can get quite massive in a short period of time because they are a compounded...