Question: use python Let's take a look at a factorial - 5!=54321=120 - 3!=321=6 Write a program that calculates the sum of all factorials entered by
Let's take a look at a factorial - 5!=54321=120 - 3!=321=6 Write a program that calculates the sum of all factorials entered by the user. Your program should ask the user to enter as many factorials as they would like and add up the sum of all those factorials. (Entering zero should signal the program to stop) For example, If the user entered 4 factorials: 3!, 5!, 8! And 2 ! It would add 6+120+40320+2=40448 You must write a function called factorial to accomplish this task and not use the built-in factorial function. It should accept the number as a parameter and return the resultant factorial
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
