Coders Packet

Large Number Factorial Calculator using C++

By Tanmay Ahuja

This project tells on how to calculate Factorial of large numbers using C++ that cannot be calculated through the calculator.

In this project, I have written a program with the help of which a person can calculate the factorial of large numbers which cannot be calculated with the help of a calculator.

Algorithm used:

1) As the numbers are very big so I have stored the numbers in an array instead of an integer variable.

2) Now for Calculating the factorial I multiply the individual elements of the array and when it exceeds a single digit I store it in another variable and I have added this variable to the start of the array. 

3) Finally I have printed the elements of the array and get the required factorial of the number.

 

The below image shows the output of the project after calculating the factorial of 678.

Download project

Reviews Report

Submitted by Tanmay Ahuja (tanmay140)

Download packets of source code on Coders Packet