Skip to content

Commit 5290bec

Browse files
authored
Solution
1 parent 03344e5 commit 5290bec

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import re
7+
import sys
8+
9+
# Complete the extraLongFactorials function below.
10+
def extraLongFactorials(n):
11+
ans=1
12+
while(n!=1):
13+
ans*=n
14+
n-=1
15+
print (ans)
16+
17+
if __name__ == '__main__':
18+
n = int(input())
19+
20+
extraLongFactorials(n)

0 commit comments

Comments
 (0)