---
category_name: school
problem_code: FCTRL2
problem_name: 'Small factorials'
languages_supported:
- ADA
- ASM
- BASH
- BF
- C
- 'C99 strict'
- CAML
- CLOJ
- CLPS
- 'CPP 4.3.2'
- 'CPP 4.9.2'
- CPP14
- CS2
- D
- ERL
- FORT
- FS
- GO
- HASK
- ICK
- ICON
- JAVA
- JS
- 'LISP clisp'
- 'LISP sbcl'
- LUA
- NEM
- NICE
- NODEJS
- 'PAS fpc'
- 'PAS gpc'
- PERL
- PERL6
- PHP
- PIKE
- PRLG
- PYPY
- PYTH
- 'PYTH 3.4'
- RUBY
- SCALA
- 'SCM chicken'
- 'SCM guile'
- 'SCM qobi'
- ST
- TEXT
- WSPC
max_timelimit: '1'
source_sizelimit: '2000'
problem_author: admin
problem_tester: null
date_added: 1-12-2008
tags:
- admin
time:
view_start_date: 1242750905
submit_start_date: 1242750905
visible_start_date: 1242750905
end_date: 1735669800
current: 1492507647
layout: problem
---
All submissions for this problem are available.### A tutorial for this problem is now available on our blog. Click [here](http://blog.codechef.com/2009/07/02/tutorial-for-small-factorials/) to read it.
You are asked to calculate factorials of some small positive integers.
### Input
An integer t, 1
### Output
For each integer n given at input, display a line with the value of n!
### Example
Sample input: ```
4
1
2
5
3
<pre>Sample output:
</pre>
1
2
120
6
<pre>