---
{"languages_supported":{"0":"NA"},"title":"FCTRL2","category":"NA","old_version":true,"problem_code":"FCTRL2","tags":{"0":"NA"},"layout":"problem"}
---
<h3> All submissions for this problem are available. </h3><p align="justify"><b>A tutorial for this problem is available <a title="here" href="/wiki/tutorial-small-factorials">here</a></b></p>
<p align="justify">You are asked to calculate factorials of some small positive integers.</p>
<h3>Input</h3>
<p align="justify">An integer t, 1<=t<=100, denoting the number of testcases, followed by t lines, each containing a single integer n, 1<=n<=100.</p>
<h3>Output</h3>
<p align="justify">For each integer n given at input, display a line with the value of n!</p>
<h3>Example</h3>
<div align="left">Sample input:
<pre>4
1
2
5
3
</pre>
<p>Sample output:</p>
<pre>1
2
120
6
</pre>
</div>
<p></p>