0
3.9kviews
What do you mean by Recursion? Write a program which will accept two numbers, n and r and calculate value of $nC_r$ = n! / r! (n - r)!. Program should make use of recursion.
1 Answer
1
170views

Recursive Function:

  • A function that calls itself is called as recursive function.
  • A recursive function must definitely have a condition that exists from calling the function again.
  • Hence there must be a condition that calls the function itself if that condition is true.
  • If the condition is false then it …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.