Question: IN Python ,Write a function productOf() which has a parameter as an integer and we will use an accumulator to calculate the multiplication of a

IN Python ,Write a function productOf() which has a parameter as an integer and we will use an accumulator to calculate the multiplication of a range of numbers using for loop and return the product of numbers. For example, 1*2*3*4 = 24.

Example

input is 4

Output is 24

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 Databases Questions!