Python Program to Calculate Factorial of a Number
Factorial of an integer is the product of the integer and all the integers below it; e.g. factorial five ( 5! ) is equal to (5*4*3*2*1) =120
- #Python Program to calculate factorial of a number
-
- n=int(input("Enter number of rows: "))
-
- fact=1
-
- for i in range(1, n+1):
- fact=fact*i
-
- print(fact)
Output

Solution not working or have any suggestions? Please send an email to [email protected]
Download Android App