adspace
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
What is trait in php?
Write a program using while loop?
Name and explain five of the PHP error constants?
how to detect a mobile device using php
List some features of php that are deprecated in php7?
What is difference between static and final in php?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
What sized websites have you worked on in the past?
sort term descripttion form, report and uery
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
How to create a web form?
Explain me is it possible to destroy a cookie?
How to calculate the difference between two dates using php?
What is the current stable version of php? What advance thing in php7?
What is the difference between htmlentities() and htmlspecialchars()?