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

Why do we use polymorphism in php?

0 Answers  


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

0 Answers  


Can you define an argument as a reference type?

0 Answers  


How to remove white spaces from the beginning and/or the end of a string in php?

0 Answers  


How do you access a get requests url parameter with php?

0 Answers  


How do I stop php artisan serve in windows?

0 Answers  


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


What are the methods to submit form in php?

0 Answers  


Explain include(), include_once, require() and require_once?

0 Answers  


What is zend studio for?

0 Answers  


What are the different tables(engine) present in mysql, which one is default?

0 Answers  


Write a php code which could be used to generate random numbers between 1 - 100 and display them on the screen.

7 Answers  


Categories