Saved Bookmarks
| 1. |
Write a program to find factorial of a number in r using recursion. |
|
Answer» Explanation: Example: Find Factorial of a number using recursion. Here, we ask the USER for a number and use recursive function recur_factorial() to compute the product upto that number. Lets suppose the user PASSES 5 to the function. Inside the recur_factorial() , the number 5 is MULTIPLIED to the factorial of (5 – 1 = 4 |
|