Jump to content

A+B: Difference between revisions

m
Line 2,683:
<lang Perl>my ($a,$b) = split(' ', scalar(<STDIN>));
print "$a $b " . ($a + $b) . "\n";</lang>
 
# Or using The List::Util module and a modern perl...
say sum split /\s+/, scalar <STDIN>;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.