You are given a number N. You need to calculate its factorial. N can be very large.
The first line contains an integer 'T' denoting the total number of test cases. T testcases follow. Each testcase contains single line of input. The input for each testcase is a number N.
For each testcase, print the factorial of N.
1 <= T <= 449
0 <= N <= 448
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.