Pages

Men

rh

6/10/2012

Factorial Program


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

No comments :

Post a Comment