technotip.com/...
Lets write a C program to find Factorial of a user input number using Recursion.
Factorial Definition: Factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n.
Important Note: By convention, Factorial of 0 is 1. i.e., 0! = 1.
Example: 5! = 5 x 4 x 3 x 2 x 1 which is equal to 120. i.e., 5! = 120.
Formula To Calculate Factorial of any positive integer number
We can calculate factorial of any number using this relationship:
num! = num * (num - 1)!
where num is a positive integer number.
C Programming Interview / Viva Q&A List
technotip.com/...
C Programming: Beginner To Advance To Expert
technotip.com/...
Негізгі бет C Program To Find Factorial of a Number using Recursion
Пікірлер: 23