Help for this page

Select Code to Download


  1. or download this
    # for example:
    $initValue = 2;
    ...
    
    # wanted string is:
    $str = '2 5 8 11 14';
    
  2. or download this
    my $str = $initValue;
    for (my $i=2; $i<=$numOfMembers; $i+=$step) {
       $str .=  ' ' . ($initValue + $step($i-1));
    }