Skip to content

Instantly share code, notes, and snippets.

@10iii
Last active December 31, 2015 05:19

Revisions

  1. 10iii renamed this gist Dec 13, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. 10iii created this gist Dec 13, 2013.
    12 changes: 12 additions & 0 deletions v2ex-test
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    <?php
    function jiecheng($i) {
    $s = '1';
    $a = 1;
    echo $s . '=' . $a . "\n";
    for ($c = 2; $c <= $i; $c++) {
    $s = $c . '*' . $s;
    $a *= $c;
    echo $s . '=' . $a . "\n";
    }
    }
    ?>