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
What is int32?
What exactly happens when we debug and build the program?
How long has c# been around?
What is the difference between method and function in c#?
What is Dependency of Injection?
How does substring work in c#?
Can an int be negative c#?
What is the class in c#?
What does string format do?
What is a generic in c#?
Should I make my destructor virtual?
What is c# entity framework?
What is event delegate in c#?
What is instantiating a class in c#?
What are properties in c#. Explain with an example?