Pls Help!!!

This is a discussion on Pls Help!!! within the C Programming forums, part of the General Programming Boards category; Dear Everyone, Please help about this question" Write a recursive function MulMinMax that take in 3 value integer parameters min, ...

  1. #1
    ricky2000
    Guest

    Smile Pls Help!!!

    Dear Everyone,

    Please help about this question" Write a recursive function MulMinMax that take in 3 value integer parameters min, max and nextnum and return the product from min to max increasing min by nextnum up to and including max. For example, MulMinMax(2,10,3) returns 80 (2X5X8)."

    Thanks,
    Ricky

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Post what you have done so far, and where exactly your problem is.

    http://www.cprogramming.com/cboard/a...p?s=&forumid=4
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    3

    Question

    Actually I don't know why the returns is 80(2x5x8) that is the point.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    49
    MulMinMax(2,10,3)
    What I have understood :
    min = 2
    max = 10
    nextnum = 3

    so product of numbers from min to max "step" 3
    MulMinMax(2,10,3) = 2 * (2+3) * (2+3+3) = 2 * 5 * 8

    An other example MulMinMax(3,19,4) = 3 * 7 * 11 * 15 * 19
    ( from 3 up to 19 step 4 including max)

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    3

    Smile

    Thanks so much--GertFaller
    I will thinking about it........^^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic port scanner code .. pls help ???
    By intruder in forum C Programming
    Replies: 18
    Last Post: 03-13-2003, 08:47 AM
  2. i dont know what to do. pls. help!!!!
    By Unregistered in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2002, 03:24 PM
  3. help me pls..... :(
    By mocha_frap024 in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2002, 10:46 AM
  4. pls help me!!
    By hanseler in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2001, 08:46 PM
  5. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 03:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21