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

969


Is c# a backend language?

978


Why does dllimport not work for me?

1047


What is Implicit conversion in C#?

1123


What is instantiating a class in c#?

1041


What are console applications used for?

931


What are the steps to make an assembly to public?

987


Why do we need static in c#?

964


Which program construct must return a value?

1083


What is predicate c#?

985


explain the features of static/shared classes.

949


What does dbml mean?

881


How can you set image source dynamically from c# application to ”test.png” file?

1080


Why do we use void in c#?

871


What is the difference between “constant” and “readonly” variables in c#?

1012