BETA
This is a school problem. Successful submissions of this are not counted in user ratings.

Submissions : 1798 Accuracy :

34.76

Small Factorial
     

Calculate factorial of a given number N.

Input:

The first line contains an integer 'T' denoting the total number of test cases. In each test cases, it contains an integer 'N'.


Output:
In each seperate line output the answer to the problem.

Constraints:

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


Example:
Input :
1
5

Output:

120

**For More Examples Use Expected Output**


Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.