Sum multiples of 3 and 5: Difference between revisions

Content deleted Content added
Midaz (talk | contribs)
→‎{{header|Uiua}}: Alternative solution.
Miks1965 (talk | contribs)
PascalABC.NET
Line 3,207: Line 3,207:
output
output
<pre>233168</pre>
<pre>233168</pre>

=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
##
var n := 1000;
(3..n-1).Where(i -> i.Divs(3) or i.Divs(5)).Sum.Println
</syntaxhighlight>
{{out}}
<pre>
233168
</pre>



=={{header|Perl}}==
=={{header|Perl}}==