![]() |
Recursion Question
How do I write a recursive function that counts the number of sequences that sum up to that number that the user inputs? I have most of the program but I'm not sure how to make the loop work.
Code:
#include <iostream> |
Re: Recursion Question
can you write a mathematical formula for what you want to calculate?
maybe this? sum=1+2+3+5+.....+n |
| All times are GMT +5.5. The time now is 06:47. |