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 javascript in php?

0 Answers  


How can we change the maximum size of the files to be uploaded?

0 Answers  


Does empty check for null?

0 Answers  


What is the current stable version of php?

0 Answers  


How to write comment in php?

0 Answers  


In forms when i am click submit button it will store on the desired table as well as it send to paticuler mail id. Any body know the answer plz give me detail information.

2 Answers  


Which of the delimiter is ASP style?

0 Answers  


how to upload 100mb file using .htaccess..

2 Answers  


Can you specify the "new line" character in single-quoted strings?

0 Answers  


how to get server date and time?

10 Answers  


What is string function sql?

0 Answers  


A process is identified by a unique___

0 Answers  


Categories