# 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. ## 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. Post what you have done so far, and where exactly your problem is.

http://www.cprogramming.com/cboard/a...p?s=&forumid=4

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

4. 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. Thanks so much--GertFaller