Question: Q2. (2 points) Continue with the above question. Write a program that com- putes and prints out the first m factorials of ODD numbers (where
Q2. (2 points) Continue with the above question. Write a program that com- putes and prints out the first m factorials of ODD numbers (where the value for m is from user input), in reverse order. See the following example for the requirement. Requirement: define a function with name "AllOddFactorials" ### Solution to Question 2 def AllOddFactorials(m): .. Your codes For example, if m 4, calling "AllOddFactorials(m)" will print 7!, print 5!, print 3 and then print 1! (do not print any factorial of even numbers). The literal outputs should be (for m = 4), 5040 120 Note the prints must be in reverse order. You may re-use part of your code from Question 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
