Please visit DEMANDDRAFT.SHOP for quality of products...

Ad

Search This Blog

Sunday, June 10, 2012

Factorial Program


Protected void PrgFactorialPrg()
{
   int num = Convert.ToInt32(txtFact.Text);
   longfactorial = 1;
   while(intval <= num)
   {
   factorial = factorial * intval;
   intval++;
     }
   label3.Text = factorial.ToString();
}

No comments:

Post a Comment