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 the difference between “dispose” and “finalize” variables in c#?

1020


What is the difference between Singleton design pattern and Factory design pattern?

971


What is difference between overloading and short circuiting?

997


What is the main usage of keyword “virtual” ? How does it work for a method or property?

925


Can you declare a field readonly?

951


What is the namespace for datatable in c#?

973


What is an interface class in c#?

1108


Is c# 8 released?

912


What is using in c#?

881


What is deadlock in c#?

952


Can arraylist store different data types in c#?

1013


Define Final Class in C#

1038


What are the types of inheritance in c#?

972


Why do we need static class in c#?

1010


What is int64 in c#?

905