Question: Q5 (2pts]: Using two nested for loops, write a function my_product(a,b) that is performing the multiplication of two int numbers a and b and return

 Q5 (2pts]: Using two nested for loops, write a function my_product(a,b)

Q5 (2pts]: Using two nested for loops, write a function my_product(a,b) that is performing the multiplication of two int numbers a and b and return the result. Hint: any integer number can be decomposed as a summation of 1, example: 4=1+1+1+1; it means that 4*3 is equivalent to 12 summations of 1 numbers function

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!