Type Here to Get Search Results !

Factorial of Large Numbers 96, 97 , 98 , 100 ... | CodingHumans |

0

Factorial of Large Numbers 


Note Large numbers does not imply to the input is is basically the output that we get after the factorial of number like 100 while is a very huge number which cannot be stored by the primitive data types.


Problem


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


Input


An integer t, 1<=t<=100, denoting the number of testcases, followed by t lines, each containing a single integer n, 1<=n<=100.


Output


For each integer n given at input, display a line with the value of n!


Example

Input

4

97

98

99

100


Output


96192759682482119853328425949563698712343813919172976158104477319333745612481875498805879175589072651261284189679678167647067832320000000000000000000000

9426890448883247745626185743057242473809693764078951663494238777294707070023223798882976159207729119823605850588608460429412647567360000000000000000000000

933262154439441526816992388562667004907159682643816214685929638952175999932299156089414639761565182862536979208272237582511852109168640000000000000000000000

93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000




Recommended: Please try your approach on your integrated development environment (IDE) first, before moving on to the solution.

Few words from CodingHumans : Don't Just copy paste the solution, try to analyze the problem and solve it without looking by taking the the solution as a hint or a reference . Your understanding of the solution matters.

HAVE A GOOD DAY 😁





Solution 
( Java )

If you have any doubts regarding this problem or  need the solution in other programming languages then leave a comment down below .

Post a Comment

0 Comments

Top Post Ad

Below Post Ad