"Factorial: In mathematics, the factorial of an integer n, denoted by n! is the following product: n!=1×2×…×n " - Snakify python coding question

 

 

 


 

CODING QUESTION

In mathematics, the factorial of an integer , denoted by is the following product:

For the given integer calculate the value . 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