SHARE
TWEET

Small_factorials

a guest Jul 13th, 2010 91 Never
  1. t=input()
  2. l=[]
  3. def fac(n):
  4.         fact=1
  5.         for i in xrange(1,n+1):
  6.                 fact=fact*i
  7.         return fact
  8. for i in xrange(1,t+1):
  9.         j=input()      
  10.         l.append(fac(j))
  11. print('\n')
  12. for i in l:
  13.         print i
RAW Paste Data
Top