Hello, curious readers! Welcome to my sixth program, which is very interesting. Basically , it´s a factorial calculator. A factorial is the result of multiplying a sequence of descending natural numbers down to 1 (such as 4 × 3 × 2 × 1).
-For example : 4! = 4 × 3 × 2 × 1 = 24
In this program below, user is asked to enter a POSITIVE integer. Then the factorial of that number is computed and displayed in the screen. Specifically in my program , I found the factorial of a non-negative integer (entered by the user) using recursion.
Remember that a function that calls itself is known as a recursive function. And, this technique is known as recursion.
- Helpful resources:
-Hope you find my code useful.
See you later!