Help for this page

Select Code to Download


  1. or download this
    sub avg
    {
        my $len1 = $#numlist + 1;
        return total(@numlist) / $len1;
    }
    
  2. or download this
        my $len1 = @numlist;