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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function mysql_pconnect() useful for?

935


How to reset/destroy a cookie in php?

953


How error handling is being handled by php?

1040


What is url encoding and decoding in php?

1084


What is json php?

1006


How can we upload a file in php?

1004


How to find the index of an element in an array php?

994


What does $_cookie means?

954


Why php is used with mysql?

1003


What is the difference between html and php?

979


Can we extend two classes in php?

1045


How to specify argument default values?

962


What is a variable cost example?

1025


How to remove duplicate values from a PHP Array?

1066


What is the function of mysql_real_escape_string in php?

914