I have just been studying the concept of recursion and I thought that I would try a simple example. In the following code, I am attempting to take the numbers: 1, 2, 3, 4, 5, an
That's because, when the value is = 0, you return 1. Then it get's added.
Sum's "else" clause should return 0.