100! What is the factorial of hundred?

How to calculate what is the factorial of hundred: Factorial is a mathematical result that is achieved when the number for which it has to be calculated is multiplied by every number below it. So with this method lets do our maths and make computer programs in C , Java python etc to solve the factorial of 100.

The formula for calculating factorial is:

Factorial of N = N * (N-1) * (N-2) * (N-3)……..* (N-(N-1)

The symbol used for denoting factorial is !

For example 6!= 6*5*4*3*2*1=720.

Now using the same formula

Letting n = 100, we get

100! = 100 * (100 – 1) * (100 – 2) * (100 – 3) * … … * 1

= 100 * 99 * 98 * 97 * … … * 1

93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000

Essentially it denotes the number of ways “N” things can be arranged which is also called permutation and combination.

Computer Programs for calculating factorial of 100

Below are some of the common programming languages used for calculating 100!.

C program to find what is the factorial of hundred

To calculate 100! you can use the below C program for reference.

``````#include<stdio.h>
int main(){
int i,f=1,num;

printf("Enter a number: ");
scanf("%d",&num);

for(i=1;i<=num;i++)
f=f*i;

printf("Factorial of %d is: %d",num,f);
return 0;
}``````

JAVA program for calculating 100 Factorial

``````class Facto{
public static void main(String args[]){
int i,fact=1;
int number=100;//It is the number to calculate factorial
for(i=1;i<=number;i++){
fact=fact*i;
}
System.out.println("Factorial of "+number+" is: "+fact);
}
}  ``````

Python program for calculating Factorial of 100

``````def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
n=int(input("Input a number to compute the factiorial : "))
print(factorial(n))``````

Using Javascript for 100 factorial

``````<!doctype html>
<html>
<script>
function show(){

var i, no, fact;
fact=1;
no=Number(document.getElementById("num").value);
for(i=1; i<=no; i++)
{
fact= fact*i;
}
}
</script>
<body>
Enter Num: <input id="num">
<button onclick="show()">Factorial equals</button>