fork download
  1. <?php
  2. $n=10;
  3. $count = 0;
  4. for ($i= 1; $i<=$n; $i++)
  5. for ($j=$i+1; $j<=$n; $j++)
  6. for ($k=$i+1; $k<=$j; $k++)
  7. $count ++;
  8. echo $count;
  9. ?>
Success #stdin #stdout 0.02s 23708KB
stdin
Standard input is empty
stdout
165