3 comments:

  1. $num1=$_POST["num"];
    $i=1;
    $fact=1;
    while($i!=$num1+1)
    {
    $fact*=$i;
    $i++;
    }
    echo $fact;

    ReplyDelete
  2. php
    $number=$_POST['num'];
    $sum=0;
    $f=1;
    for($i=1;$i<=$number;$i++)
    {$f=$f*$i;
    }
    echo"sum of factorial series is:$f";
    ?>

    ReplyDelete
  3. $number=$_POST['num'];
    $sum=0;
    $f=1;
    for($i=1;$i<=$number;$i++)
    {$f=$f*$i;
    }
    echo"sum of factorial series is:$f

    ReplyDelete