# Print Factorial of a Number | By Kvc

Finding Factorial of number is not so much difficult task to do, but it becomes very difficult, when you have to make a computer understand that '

**You need it for calculating Factorial**'. Making a Computer understand, what is a Factorial, and using it for making your life easier is very difficult task, If you are new with computer programming, but batch is a platform, which can make difficult things easier. You can make a program, which can calculate Factorial for you. Many of you already Know the syntax or way to calculate Factorial. Same method we have to implement in the program.
The logic to find factorial of a number is very easy and we can easily make a computer understand. As factorial is Simple multiplication of numbers. It doesn't matter whether you multiply them in Increasing order or In Decreasing order, the Result remains the same. so, I'm using Simply a For loop here, which goes to the specified number and multiply all numbers coming in-between.

Print Factorial of a Number | By Kvc |

You can print, Factorial of any number you want to know, but as CMD has its own limitations, and the limit of integer variable (which holds the value of result calculated), results into the limitation of this program. As in above image, we have simply printed the factorial of '

**5**' on the cmd console.Limit of 'n' |

As due to limitations of CMD, we can only print factorial of first

**31 natural number**!! This is only due to the limitation of CMD variable length. But, we can still make it improved via using various techniques to boost the limit of variables. You can download this program, via the link given below.
Keep learning, keep sharing…

Be happy, spread happiness…

**Download Link:**Factorial.Zip

#TheBATeam