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...

write code for Factorial?

Answer Posted / shanker

int numberfactorial(int number)
{
if (number == 1) {
return number;
}
else {
return number * numberfactorial(number - 1);
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is threading in c# with example?

867


What does out mean in c#?

884


Explain About Global.asax

924


What is the difference between the debug class and trace class? Documentation looks the same.

1072


What is hash c#?

897


What is uint64_t?

937


what is method overloading in c#?

1008


Can we declare class as protected?

935


What does exclamation mark mean c#?

964


What is xaml file in c#?

920


What are handlers in c#?

925


What is datasource c#?

859


How many constructor can a class have?

942


Explain the difference between abstract class and interface.

1106


Is arraylist thread safe?

847