Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    sub powers {
        $_[$_] = $_[$_ - 1] * $_[0] for 1 .. @_ - 1;
    }
    
  2. or download this
    2 4 8 16 32