Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

22 lines (18 sloc) 369 Bytes
/*
* @turlapatykaushik
* github url : github.com/turlapatykaushik
* problem description : program to find the factorial values of numbers for some given number of inputs
*/
def fac(n):
if(n==0):
return 1
elif(n==1):
return 1
else:
return n * fac(n-1)
t = input()
while(t):
t=t-1
n = input()
p = fac(n)
print p
You can’t perform that action at this time.