Problem of the day
The first line contains a single integer ‘T’ denoting the number of test cases.
Each test case contains a single line with a single integer ‘N’ denoting the given number.
For each test case, print a string denoting the factorial of the given number in a separate line.
You do not need to print anything; it has already been taken care of. Just implement the given function.
1 <= T <= 50
1 <= N <= 500
Time Limit: 1 sec.
2
3
4
6
24
In the first test case, the factorial of 3 is 1x2x3 = 6.
In the second test case, the factorial of 4 is 1x2x3x4 = 24.
2
5
1
120
1