Write a program that contains two function definitions.
Include a definition of the factorial function. Then
add another definition after it of function
sumFactorials(n), which produces the sum
1! + 2! + 3! + ... + n!. For example,
sumFactorials(3) = 1! + 2! + 3! = 1 + 2 + 6 = 9
and sumFactorials(4) = 1! + 2! + 3! + 4! = 1 + 2 + 6 + 24 = 33.
Then make the program display the values of sumFactorials(3) and
sumFactorials(5). (Remember that the definition of
sumFactorial can use your factorial function.)