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

Tell me what is the difference between get and post?

1004


Tell me how can we change the maximum size of the files to be uploaded?

1027


Tell me which function gives us the number of affected entries by a query?

1044


What types of MYSQL function available for affecting columns

1002


Name and explain five of the PHP error constants?

1000


What is the use of header in php?

1009


/temp is a type of filesystem directory. State Whether True or False?

1063


What is the interface in php?

1090


What is use of count() function in php?

1096


How to get a random value from a php array?

1046


Is php open source?

1055


Tell me is it possible to protect special characters in a query string?

959


Explain what are psrs? Choose 1 and briefly describe it?

1010


Should I learn php before wordpress?

1025


What is sql injection in php?

1208