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 can we sort an array in c#?

915


What is hashset c#?

992


What is the difference between icomparer and icomparable in c#?

940


Why do we need constructor?

918


What is a delegate how is it type safe?

863


To create a localized application which namespaces are necessary?

986


How do partial classes work in c#?

950


Does c# support templates?

976


Explain hash table in c# ?

1084


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

1093


What is marshalling in c#?

881


List the fundamental oop concepts?

901


Is array a list?

875


What is lazy loading entity framework?

1008


What is serializable in c#?

908