Small Factorials

4.1

161 votes
Ad-Hoc
Problem

You are asked to calculate factorials of some small positive integers.

InputAn integer T, denoting the number of testcases, followed by T lines, each containing a single integer N.

Output For each integer N given at input, output a single line the value of N!

Input Constraint

1 <= T <= 100 1 <= N <= 100

Time Limit: 3
Memory Limit: 256
Source Limit:
Editor Image

?