anonymous
  • anonymous
Hi, "Write a function that takes in two numbers and recursively multiplies them together.".. What does it mean ? if a = 3 and b = 2, does it mean : 3x2+2x1+1x0 ? or 3!x2! ? Thank you
Computer Science
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

MicroBot
  • MicroBot
maybe you are supposed to white a function that reproduces the * .means that u cant use multiply but + so if u want to multiply 2*3 ull have to do 2+2+2....maybe.... but not sure really
anonymous
  • anonymous
Hi, thanks to stop by. ;) This comes from : 6.189 IAP 2011: Optional Recursion Exercises but they don't seem to say anything about operator use ?..
MicroBot
  • MicroBot
hmm never done or seen that course...so cant really help u...its just in many courses they show u or ask you to make that kind of an exercise , that's why i mentioned it best of luck with it

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
What I think s meant is that if you have a multiplication like 4 * 2, you multiply it as follows: 4 * 2 = 2 + 3 * 2 3 * 2 = 2 + 2 * 2 2 * 2 = 2 + 1 * 2 1 * 2 = 2 This can be programmed with a recursive function. (Of course it'd be better to decrement the two instead of the four...)
MicroBot
  • MicroBot
well ye that's what i meant ....gj explaining it
anonymous
  • anonymous
Yes I guess thats it. Thank you slotema ! ;)

Looking for something else?

Not the answer you are looking for? Search for more explanations.