Help for this page

Select Code to Download


  1. or download this
    syntax error at a.pl line 8, near ");"
    syntax error at a.pl line 12, near ");"
    Global symbol "$n" requires explicit package name at a.pl line 20.
    Execution of a.pl aborted due to compilation errors.
    
  2. or download this
    use strict;
    use warnings;
    my ($i, $j, $x, $tot);
    ...
        $tot=$tot+(($_-$ave)^2);}
    my $deviation=sqrt($tot/$n);
    print "\nThe Standard Deviation of that set of numbers is $deviation.\
    +n";