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 boolean c#?

931


What's the difference between class and object?

1040


What is windows application in c#?

966


What can you do as a .net developer?

981


What are get and set in c#?

1059


Is c# an open source?

976


What is a dynamic assembly?

1015


What are the differences between value types and reference types?

1192


Explain the difference between a namespace and assembly name in .net?

990


What is a .aspx file?

913


Why is xml called extensible?

921


What is the default value of string in c#?

1051


What is single dimensional array in c#?

991


What are native methods?

924


How does c# achieve polymorphism?

989