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

Popular posts from this blog

Factorials problem spoj Solution

Adding Reversed Numbers Spoj Solutions