0% found this document useful (0 votes)
14 views2 pages

Small Factorials Solutions Guide

The document provides a solution guide for calculating factorials of small positive integers through a coding platform. Users can select problems, write code in various programming languages, and test their solutions. It includes input and output specifications for the problem 'Small Factorials' along with constraints and available programming languages for implementation.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Small Factorials Solutions Guide

The document provides a solution guide for calculating factorials of small positive integers through a coding platform. Users can select problems, write code in various programming languages, and test their solutions. It includes input and output specifications for the problem 'Small Factorials' along with constraints and available programming languages for implementation.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Solution 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.

We will describe solutions forSmall Factorialsin different languages for successful


submission.

Small Factorials

You are asked to calculate factorials of some small positive integers.

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

Solutions in different languages for Small Factorials are written below.

C++

Clojure

C#

Haskell

Java

Javascript

Objective-C
Perl

PHP

Python

Ruby

You might also like