Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


programm for factorial



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

Post New Answer

More PHP Interview Questions

How to replace a text in a string with another text in php?

0 Answers  


What does session start do in php?

0 Answers  


How to change the principal password?

0 Answers  


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) ?

2 Answers   TCS,


Can we extend multiple classes in php?

0 Answers  


What is Gd PHP?

0 Answers  


Which php global variable is used for uploading a file?

0 Answers  


What are the security measures we have to take for our site not to hack by others?

1 Answers   Infosys,


what is difference between edit and update?

1 Answers  


Where are sessions stored php?

0 Answers  


CWD is a type of shell variable. State Whether True or False?

0 Answers  


What is the use of dual table in mysql?

0 Answers  


Categories