Help for this page

Select Code to Download


  1. or download this
    $max = 7;
    for ($i=1; $i<$max; $i++) {
    ...
            print ++$tuple[0],',',++$tuple[1],' ' while ($tuple[1] < $max)
    +;
            print "\n"
    }
    
  2. or download this
    for ($M=7, $i=1; @_ = (0,$i), $i<$M; $i++)
            { print ++$_[0],',',++$_[1],($_[1]==$M?"\n":" ") while ($_[1] 
    +< $M) }