Given a positive integer N. The task is to calculate the factorial of N.
The first line contains an integer 'T' denoting the total number of test cases. T testcases follow. In each test cases, it contains an integer 'N'.
For each testcase in a new line, print the factorial of N.
1 <= T <= 19
0 <= N <= 18
Testcase 2: Factorial of 4 is 4 * 3 * 2 * 1 = 24.
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.