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 / dilip tekedil

public long Factorial(short num)
{
if (num == 1) return (long)1;
return num * Factorial(--num);
}

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a .exe file?

956


What is main thread in c#?

871


How to override a function in c#?

949


Why do we need constructors?

844


What basic steps are needed to display a simple report in crystal?

917


How do generics work in c#?

869


What is the use of getcommandlineargs() method in c#.net?

935


How do you name a variable in c#?

871


What language is c# similar to?

882


Does unity use c++ or c#?

842


Can constructor be protected?

852


What is a partial method?

910


What is exe in c#?

875


How do you clear a list in c#?

865


What is sorting in c#?

937