Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

diomit

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

  • one year ago
  • one year ago

  • This Question is Closed
  1. MicroBot
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • one year ago
  2. diomit
    Best Response
    You've already chosen the best response.
    Medals 0

    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 ?..

    • one year ago
  3. MicroBot
    Best Response
    You've already chosen the best response.
    Medals 0

    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

    • one year ago
  4. slotema
    Best Response
    You've already chosen the best response.
    Medals 2

    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...)

    • one year ago
  5. MicroBot
    Best Response
    You've already chosen the best response.
    Medals 0

    well ye that's what i meant ....gj explaining it

    • one year ago
  6. diomit
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes I guess thats it. Thank you slotema ! ;)

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.