Sum multiples of 3 and 5: Difference between revisions
m
→{{header|Perl}}: typo
SqrtNegInf (talk | contribs) m (→{{header|Perl}}: 2nd example needed integer results from division) |
SqrtNegInf (talk | contribs) m (→{{header|Perl}}: typo) |
||
Line 2,242:
{{Trans|Tcl}}
An alternative approach, using the analytical solution from the Tcl example.
<lang Perl>use feature 'say';
sub tri
{
|