What is the factorial of hundred [Explained]

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 how to calculate what is the factorial of hundred?

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.

Using C program to find what is the factorial of hundred

IF you are looking to write a computer program 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 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

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

<!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>
</body>
</html>

What number is factorial of 100

F(100) = 100*99*…….*1 = 9.332622e+157

24

What is the number of digits in 100 factorial?

The number of digits in 100 factorial is 158.

More maths Questions