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) 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
Get step-by-step solutions from verified subject matter experts
