Discussion Question


Class- We discussed the concept of recursion during lecture last week (i.e. a function calling itself). Since this is a computer science class (and assuming most of you have taken a programming language course before), I would like to see examples of "recursion in action". Provide examples of functions/procedures in either Java, C++, VB.net, or in pseudocode format that illustrate the concept of implementing recursion in a programming language.


It is a dicreat mathmatics class

    • 6 years ago
    • 3