Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php factorial

function Factorial($n) {
  	return ($n <= 1) ? 1 : $n * Factorial($n - 1);
}
 
PREVIOUS NEXT
Tagged: #php #factorial
ADD COMMENT
Topic
Name
1+5 =