Extra long factorials : HackerRank Problem Solution

Extra long factorials : HackerRank Problem Solution


Python Implementation:


# import the factorial class from math package
from math import factorial

# get the number from the user for which we have to print the factorial
n=int(raw_input())

# print the factorial of the number entered by the user
print factorial(n)