HOW TO FIND THE FACTORIAL OF A LARGE NUMBER???
FACTORIAL OF LARGE NUMBERS
the idea is to use array (because we dont have any datatype to store very big number).
How to multiply a number ‘x’ with the number stored in res[]?
The idea is to use simple school mathematics. We one by one multiply x with every digit of res[]. The important point to note here is digits are multiplied from rightmost digit to leftmost digit. If we store digits in same order in res[], then it becomes difficult to update res[] without extra space. That is why res[] is maintained in reverse way, i.e., digits from right to left are stored.
this is the main idea behind whole program.
Bhaiya ,samajh ni aaya ye
Please go through the link I shared, otherwise watch this video , maybe this will help https://www.youtube.com/watch?v=2fYZERB2Yng