Calculate factorial of a given number N.
The first line contains an integer 'T' denoting the total number of test cases. In each test cases, it contains an integer 'N'.
In each seperate line output the answer to the problem.
1 <= T <= 100
1 <= N <= 18
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.