ok i have to do this.
2 subroutines that each take a list of numbers (six numbers in my case) as a parameter. 1st: adds up all the numbers in list, and returns total, and 2nd is returns the highest number in the list.
use warnings;
use strict;
sub AddNumbers
{
numberList($first_number, $second_number, $third_number, $fourth_number, $fifth_number, $sixth_number) = @_;
$add $first_number + $second_number + $third_number + $fourth_number + $fifth_number + $sixth_number;
}
print "Equals to: &add /n"
this is what im doing so far, it gives me errors, what am i doing wrong?