check this out:Computing Factorials of a huge number in C/C++: A tutorial
Though its not for c++ but you will get the logic!
check this out:Computing Factorials of a huge number in C/C++: A tutorial
Though its not for c++ but you will get the logic!