diff --git a/Algorithms/Implementation/Extra Long Factorials/solution.py b/Algorithms/Implementation/Extra Long Factorials/solution.py new file mode 100644 index 0000000..f8d4c1d --- /dev/null +++ b/Algorithms/Implementation/Extra Long Factorials/solution.py @@ -0,0 +1,26 @@ +#!/bin/python3 + +import math +import os +import random +import re +import sys + +# +# Complete the 'extraLongFactorials' function below. +# +# The function accepts INTEGER n as parameter. +# + +def extraLongFactorials(n): + # Write your code here + fact = 1 + + for i in range(1,n+1): + fact*=i + print(fact) + +if __name__ == '__main__': + n = int(input().strip()) + + extraLongFactorials(n)