Answer Posted / 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 |
Post New Answer View All Answers
Tell me how is it possible to propagate a session id?
What kind of variable is age?
What are the difference between array_keys() and array_key_exists() in php?
What is static method php?
What does the scope of variables means?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?
What is encapsulation in php?
What does the unlink() function mean?
Is it more secure to use cookies to transfer session ids?
Which is better #define or enum?
Do you know is it possible to extend the execution time of a php script?
Is php a web server?
What is faster?
What is polymorphism php?
What is echo and print in php?