programm for factorial
Answer / koushikgraj
<?php
function get_factorial_value($val)
{
$fact=1;
for($i=$val;$i>=1;$i--)
$fact=$fact*$i;
return $fact;
}
get_factorial_value(6);
?>
| Is This Answer Correct ? | 10 Yes | 1 No |
What are the current versions of apache, PHP, and mysql?
What are the limitations or drawbacks of PHP ?
How long does a session last in php?
Explain about the $_GET variable of PHP?
How can we know the count/number of elements of an array?
What are the string function in php?
How many columns can be added in a table in mysql?
what are the errors and when we get that particular errors.and who will give that errors
How many escape sequences are recognized in single-quoted strings?
What is php ci?
Can you give example for trait in php?
Tell me how is it possible to return a value from a function?