📅  最后修改于: 2022-03-11 15:00:40.891000             🧑  作者: Mango
def fact(a):
factl = 1
for i in range(1,a+1,1): factl = factl*i
return factl
def main():
t = int(input())
for i in range(t):
n = int(input())
print(fact(n))
if __name__ == "__main__":main()