From 98d6a4dca3cc143e0af16215c57a0c1bbeb20a3b Mon Sep 17 00:00:00 2001 From: Jasna Suresh Date: Fri, 30 Oct 2020 20:55:57 +0530 Subject: [PATCH] Added ExtraLongFactorials.py --- ExtraLongFactorials.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ExtraLongFactorials.py diff --git a/ExtraLongFactorials.py b/ExtraLongFactorials.py new file mode 100644 index 0000000..c5f5ed9 --- /dev/null +++ b/ExtraLongFactorials.py @@ -0,0 +1,20 @@ +#!/bin/python3 + +import math +import os +import random +import re +import sys + +# Complete the extraLongFactorials function below. +def extraLongFactorials(n): + f=1 + for i in range(1,n+1): + f*=i + print(f) + + +if __name__ == '__main__': + n = int(input()) + + extraLongFactorials(n)