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