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 |
How to replace a text in a string with another text in php?
What does session start do in php?
How to change the principal password?
This question is regarding version control. If two developers are committing the same php file at same time what will happen ? What error it will show (if any) ?
Can we extend multiple classes in php?
What is Gd PHP?
Which php global variable is used for uploading a file?
What are the security measures we have to take for our site not to hack by others?
what is difference between edit and update?
Where are sessions stored php?
CWD is a type of shell variable. State Whether True or False?
What is the use of dual table in mysql?