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

What is a partial method?

893


How to assign Null value to Var?

936


Does c# have a 'throws' clause?

967


What is view state c#?

825


What is an assembly loader?

886


What is the difference between a field and a property in c#?

879


What is primitive types in c#?

821


What is a namespace server?

858


What are the advantages of using assemble language programming?

877


Describe ado.net?

971


Why do we need dependency injection in c#?

873


What is generic in c#?

815


What is inner class in c#?

908


what are the differences between a class and structure

1044


What does return do in unity?

888