Find factorial of a number
factorial of a number is the product of all positive integers less than or equal to n.
Input:
5
Output:
120
Explanation:
n=5
factorial = 1*2*3*4*5 = 120
Code:
a=int(input())
fact=1
for i in range(1,a+1):
fact*=i
Note:
Hello Guys, Don't Stop Learning keep Going..............