You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
@array2 = ( 1 .. 5 );
|
|
print "Value\tRunning Total\n";
|
|
|
|
for ( $i = 0; $i < 5; ++$i ) {
|
|
$total += $array2[ $i ];
|
|
print( $array2[ $i ], "\t$total\n");
|
|
}
|
|
|
|
@array2 = ( 'a' .. 'z' );
|
|
print "\n@array2\n"; |