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

What are the current versions of apache, PHP, and mysql?

21 Answers  


What are the limitations or drawbacks of PHP ?

4 Answers   iDream,


How long does a session last in php?

0 Answers  


Explain about the $_GET variable of PHP?

0 Answers  


How can we know the count/number of elements of an array?

3 Answers  


What are the string function in php?

0 Answers  


How many columns can be added in a table in mysql?

0 Answers  


what are the errors and when we get that particular errors.and who will give that errors

3 Answers  


How many escape sequences are recognized in single-quoted strings?

0 Answers  


What is php ci?

0 Answers  


Can you give example for trait in php?

0 Answers  


Tell me how is it possible to return a value from a function?

0 Answers  


Categories