Small Factorials Spoj Solution(using python)
For this problem, when we use the languages like c++ , c it is going to show due to time or time limit exceded ,for getting solution i used python .
t=int(input())
while(t):
n=int(input())
fact=1
for i in range(1,n+1):
fact=fact*i
print(fact)
t=t-1
If you have any doubts comment below ๐
Comments
Post a Comment