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 what is the difference between get and post?
Tell me how can we change the maximum size of the files to be uploaded?
Tell me which function gives us the number of affected entries by a query?
What types of MYSQL function available for affecting columns
Name and explain five of the PHP error constants?
What is the use of header in php?
/temp is a type of filesystem directory. State Whether True or False?
What is the interface in php?
What is use of count() function in php?
How to get a random value from a php array?
Is php open source?
Tell me is it possible to protect special characters in a query string?
Explain what are psrs? Choose 1 and briefly describe it?
Should I learn php before wordpress?
What is sql injection in php?