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 / sathish

private void btnCalculae_Click(object sender,
System.EventArgs e)
{
string str =txt1.text;
int fact=1;
foreach char c in str
{
fact=convert.toint32(c)*fact;
}
txt2.text=fact;
}

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you reference current thread of the method ?

905


What is difference between dictionary and list in c#?

833


Can abstract class have constructor?

814


Explain the OOPS concept in C#?

927


How you will create satellite assemblies?

889


What is .cs file in c#?

858


How jit (just in time) works?

899


What are satellite assemblies?

912


Can we have multiple threads in one app domain?

901


What is a Jagged Array in C#?

952


Explain static class members.

990


What is difference between array and list in c#?

817


What are object pooling and connection pooling and difference between them?

940


Does the variables of a private class-level inherited?

954


Explain the concepts of cts and cls(common language specification).

914