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

Why do we need delegates?

825


Can you inherit from a static class in c#?

881


How do I develop c# apps?

861


What are partial classes and use of partial classes?

887


What are the 3 types of comments in c#?

891


How do you sort a list in c#?

804


If you want to write your own dot net language, what steps you will u take care?

922


Difference between Value type & reference types ? and give the example in .Net?

876


Is c# queue thread safe?

894


Where are value types stored in c#?

970


What is difference between an reference type and value type in C#?

999


What is anonymous class in c#?

870


How do destructors and garbage collection work in c#?

878


What is data hiding in c#?

852


What is bit in c#?

926