No, that is nothing like a factorial. 4 factorial (written as 4!) is 4*3*2*1 = 24.
#!/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 } }
A flowchart for a program that accepts and displays the factorial of a number would include the following steps: Start, Input the number, Initialize a variable for the factorial, Use a loop to calculate the factorial by multiplying the variable by each integer up to the number, Output the result, and End. Pseudocode for the same program would look like this: START INPUT number factorial = 1 FOR i FROM 1 TO number DO factorial = factorial * i END FOR OUTPUT factorial END
The value of 9 factorial plus 6 factorial is 363,600
It is 4060.
factorial of -1
27 factorial = 10,888,869,450,418,352,160,768,000,000
1 factorial = 1
Factorial 6 = 720
Factorial 65 = 8247650592082470666723170306785496252186258551345437492922123134388955774976000000000000000
34 factorial = 295,232,799,039,604,140,847,618,609,643,520,000,000.
18 factorial is 6,402,373,705,728,000.
Zero factorial = 1