The value of 9 factorial plus 6 factorial is 363,600
Zero factorial, written as 0!, equals 1. This is a simple math equation.
what is the value of negative n factorial ?
1 factorial = 1
It represents a factorial. A factorial is when you take each number up to value and multiply them. So factorial 3 is 1 x 2 x 3. Factorial 7 is 1 x 2 x 3 x 4 x 5 x 6 x 7.
Zero factorial = 1
7*6*5*4*3*2*1=5040
3,628,800
An example in Java, to compute 10!: int factorial = 1; for(int i = 1; i < 11; i++) { factorial *= i; }
to find the factorial we declare a variable n and initialize its value to 1 initiate a loop for example a for loop and multiply the numbers upto 5 code:- for(i=1,n=1;i<=5;i++) { n=n*i; }
#!/usr/bin/perl print factorial($ARGV[11]); sub factorial { my($num) = @_; if($num == 1) { return 1; # stop at 1, factorial doesn't multiply times zero } else { return $num * factorial($num - 1); # call factorial function recursively } }
0!=1! 1=1 The factorial of 0 is 1, not 0