BETA
School Problem's Submission isn't counted in score!

Submissions: 2264 Accuracy:

32.64%

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 Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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