Skip to main content
2 of 2
added 150 characters in body
marco-fiset
  • 8.8k
  • 9
  • 38
  • 46

You surely can use loops in a recursive function. What makes a function recursive is only the fact that the function calls itself at some point in its execution path. However you should have some condition to prevent infinite recursion calls from which your function can't return.

marco-fiset
  • 8.8k
  • 9
  • 38
  • 46