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 |
find highest salary
how to hidden querystring url please send sample program
How data or variable can be receive or send from PHP to HTML page??
What is polymorphism with example in php?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
What is default session time in php?
how to insert, update data in database
What is the difference between php and javascript?
What are the difference between abstract class and interface in oops?
How to find the position of the first occurrence of a substring in a string?
What is the purpose of the '.frm' file extension? What do thes file contain?
What is empty () in php?