You are viewing a single comment's thread. Return to all comments →
n=int(input())
if n==1: print("1") else: k=n g=[] i=1
while i<n+1: g.append(k*(n-i)) k=k*(n-i) i+=1 print(max(g))
Seems like cookies are disabled on this browser, please enable them to open this website
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
ye dekh bhai python solution
n=int(input())
if n==1: print("1") else: k=n g=[] i=1