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

Can firstordefault return null?

947


how encapsulation is implemented in c#

1090


Does unity use c++ or c#?

904


What are the examples of data types?

988


Why dataset is used in c#?

968


What is unsigned int?

902


What are events in C#?

986


What is datasource c#?

904


How Is The Dll Hell Problem Solved In .net?

1025


What is the difference between select and selectmany?

943


Why do we need indexer in c#?

1009


Can we make a class private in c#?

941


Does c# replace c++?

1067


Is it not possible to store a boolean value as a variable?

857


What is final keyword in c#?

999