What is Factorial?
n!=nΓ(nβ1)Γ(nβ2)Γβ¦Γ3Γ2Γ1
5!=5Γ4Γ3Γ2Γ1=120
0!0!0! is defined to be 1.
Input:
N = 5
Output:
Factorial of 5 is 120
N = 0
Factorial of 0 is 1
Last updated 2 years ago