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 |
Can anyone explain about join?
How to retrieve values out of an array?
What are php magic methods?
how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.
What changes I have to do in php.ini file for file uploading?
What is the w3c?
What is session data?
Where are the session values stored?
How to submit form without a submit button.
Where is the functions php in wordpress?
What is a closure in php?
What is the use of $_server["php_self"] variable?