Recursive Help

This is a discussion on Recursive Help within the C++ Programming forums, part of the General Programming Boards category; how do i right a recursive function which gets two parameters passed in. one the starting balance and the other ...

  1. #1
    ThomasB
    Guest

    Recursive Help

    how do i right a recursive function which gets two parameters passed in. one the starting balance and the other goal balance. I need to find out how long it would take to get to the goal balance by using an annual percentage rate of 3.5%

    Thank you in advance

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Code:
    #define Type something
    
    Type myFunction( Type param1, Type param2 )
    {
        ...do something here...
    
        myFunction( someValue, someOtherValue );
    
        ...possibly do something else...
    }
    Well there ya go. How about reading the forum rules next time, and making a valid effort first before begging for help?

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. recursive function
    By technosavvy in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 04:42 AM
  2. difference between recursive and iterative
    By Micko in forum C Programming
    Replies: 33
    Last Post: 07-06-2004, 09:34 PM
  3. Algorithm help (Changing from Recursive to Non Recursive)
    By Thantos in forum C++ Programming
    Replies: 1
    Last Post: 04-25-2004, 07:27 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. How to change recursive loop to non recursive loop
    By ooosawaddee3 in forum C Programming
    Replies: 1
    Last Post: 06-24-2002, 08:15 AM

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