Image credit: myself
While studying factorials, do you ever think of why the 0!=1, you will think that it need to be 0 only, but you are wrong,
Here's why,
First, for those who don't the factorials, suppose you have taken number 5 then the 5!=5*4*3*2*1=120, means for the answer you need to take all the numbers before the number you have taken, except 0. So easy.
But then you might think 0!=0 only, because multiplying 0 with any number is 0 only, but the 0!=1,then the question is why?
Because if we divide the value of the factorials with its factorial, then we will get the value of previous factorial.
Image credit: myself
Means,
5!=120/5=24 which is the value of factorial 4
4!=24/4=6 which is the value of factorial 3
3!=6/3=2 which is the value of factorial 2
2!=2/2=1 which is the value of factorial 1
Therefore,
1!=1/1=1 which is the value of factorial 0.
Before 1 it it comes 0. Thus, according to the above calculations it is clear that 0!=1.
Now you know why the 0!=1, then share it with your friends and let them also know this.
Comment your questions which you want to be answered.