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
Well there ya go. How about reading the forum rules next time, and making a valid effort first before begging for help?
#define Type something
Type myFunction( Type param1, Type param2 )
...do something here...
myFunction( someValue, someOtherValue );
...possibly do something else...