How to Find Factorial of Large Number in C and C++ – Programming Code Examples
C++

How to Find Factorial of Large Number in C and C++1 min read

Factorial of big numbers contain so many digits. For example factorial of 100 has almost 158 digits. So there is no data type available to store such a long value.

But we can find factorial for large numbers using simple multiplication method that we used in our school time. Below I have shared the program for it.




Program for Factorial of Large Number in C

Program for Factorial of Large Number in C++

Output

Enter any large number:250
3232856260909107732320814552024368470994843717673780666747942427112823747555111209488817915371028199450928507353189432926730931712808990822791030279071281921676527240189264733218041186261006832925365133678939089569935713530175040513178760077247933065402339006164825552248819436572586057399222641254832982204849137721776650641276858807153128978777672951913990844377478702589172973255150283241787320658188482062478582659808848825548800000000000000000000000000000000000000000000000000000000000000

If you have any doubt regarding above program then you can ask it by commenting below.

Leave a Comment