fork download
  1. <?php
  2. echo "Avec la méthode while <br>";
  3. $fact=8;
  4. $i=1;
  5. while ($i<8) {
  6. $fact=$fact*$i;
  7. $i++;
  8. }
  9. echo "$fact";
  10. ?>
Success #stdin #stdout 0.03s 25908KB
stdin
Standard input is empty
stdout
Avec la méthode while <br>40320