Recursion is when a method,procedure or function calls itself as part of the solution.
This is one way to create a loop.
Can you write an algorithm to solve these problems?
3-1
3-3