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

Can anyone explain about join?

3 Answers  


How to retrieve values out of an array?

0 Answers  


What are php magic methods?

0 Answers  


how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.

2 Answers  


What changes I have to do in php.ini file for file uploading?

0 Answers  


What is the w3c?

0 Answers  


What is session data?

0 Answers  


Where are the session values stored?

1 Answers  


How to submit form without a submit button.

0 Answers  


Where is the functions php in wordpress?

0 Answers  


What is a closure in php?

0 Answers  


What is the use of $_server["php_self"] variable?

0 Answers  


Categories