Sum multiples of 3 and 5: Difference between revisions

m
m (→‎{{header|Perl}}: 2nd example needed integer results from division)
Line 2,242:
{{Trans|Tcl}}
An alternative approach, using the analytical solution from the Tcl example.
<lang Perl>use feature 'say';
sub tri
{
2,392

edits