CODING QUESTION
In mathematics, the factorial of an integer n, denoted by n! is the following product:
n!=1×2×…×n
For the given integer n calculate the value n!. Don't use math
module in this exercise.
SOLUTION
n=int(input())
fact=1
for i in range(1,n+1):
fact*=i
print(fact)
Input : 4
Output : 24