18 factorial is 6,402,373,705,728,000.
Pseudo code+factorial
' Iterative solution Function iterativeFactorial(ByVal n As Long) As Long Dim factorial As Long = 1 For i As Long = 1 To n factorial *= i Next Return factorial End Function ' Recursive solution Function recursiveFactorial(ByVal n As Long) As Long If n <= 1 Then Return n End If Return n * recursiveFactorial(n - 1) End Function
#!/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 } }
double factorial(double N){double total = 1;while (N > 1){total *= N;N--;}return total; // We are returning the value in variable title total//return factorial;}int main(){double myNumber = 0;cout > myNumber;cout
120 beacause factorial means 5x4x3x2x1 so that = 120!
5 factorial = 5*4*3*2*1 = 120
145 1! = 1 4! = 24 5! = 120
It is 5*4*3*2*1 =120
5! = 5 factorial = 5x4x3x2x1 = 20x6 = 120
Five factorial = " 5! " = ( 5 x 4 x 3 x 2 x 1 ) = 120 .
(0!+0!+0!+0!+0!)!=120 !=factorial
5 factorial 5x4x3x2x1 or 120 times
lets say the equation says 5! that means 5x4x3x2x1 which equals 120 it is call five factorial based on what number is put in front of it it could be six factorial, seven factorial, etc..
5 x 4 x 3 x 2 x 1 = 120
Factorial: Denoted by the exclamation mark (!). Factorial means to multiply by decreasing positive integers. For example, 5! = 5 ∗ 4 ∗ 3 ∗ 2 ∗ 1 = 120.
A factorial of a positive integer n, is the product of all positive integers less than or equal to n. For example the factorial of 5 is: 5! = 5 x 4 x 3 x 2 x 1 = 120 0! is a special case that is explicitly defined to be 1. A factorial is denoted by n! (5! for this example)