Help for this page
Select Code to Download
Select
or
download this
use List::Util qw/sum/; while( <INPUT> ) ... push @averages, $avg_grade; }
Select
or
download this
my $i = sprintf("%d", scalar(@averages) / 2 );
Select
or
download this
my $i = int( scalar(@averages)/2 );