Small Factorials Solutions Guide
Small Factorials Solutions Guide
You can see thepractice problems listand select a problem from there. Then, you need to
select the language from tabs and write your code in the editor. You can compile and test
your code on sample testcases by clicking on 'Compile & Test'. You can submit your code
for judge by clicking on 'Submit'. You can refer toJudge Environmentfor further details.
Small Factorials
Input
An integer T, denoting the number of test cases, followed by T lines, each containing a
single integer N.
Output
For each integer N given at input, output a single line the value of N!
Input Constraint
1<=T<=100
1<=N<=100
C++
Clojure
C#
Haskell
Java
Javascript
Objective-C
Perl
PHP
Python
Ruby