Question: ?? 2. (5 marks) Write a function that returns the factorial of a given number. Your function should take one parameter that represents the given

??

?? 2. (5 marks) Write a function that returns the
2. (5 marks) Write a function that returns the factorial of a given number. Your function should take one parameter that represents the given number. The function should return the factorial of this number. To remind you of the meaning of factorial, here are some examples: 5 factorial is 5 * 4 * 3 * 2 * 1 7 factorial is 7 * 6 * 5 * 4 * 3 * 2 * 1 0 factorial is 1 1 factorial is 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Law Questions!