Friday, October 19, 2012

http://www.spoj.pl/problems/FCTRL2/
import math
a=input()
for i in range(a):
    fact=1
    b=input()
    for j in range(b, 1, -1):
        fact=fact*j
    print fact

No comments:

Post a Comment