Sum multiples of 3 and 5: Difference between revisions
→{{header|APL}}: added output
(→{{header|APL}}: Output?) |
(→{{header|APL}}: added output) |
||
Line 4:
== {{header|APL}} ==
<lang apl>⎕IO←0
{+/((0=3|a)∨0=5|a)/a←⍳⍵} 1000</lang>[http://ngn.github.io/apl/web/index.html#code=%7B+/%28%280%3D3%7Ca%29%u22280%3D5%7Ca%29/a%u2190%u2373%u2375%7D%201000,run=1 run]
{{out}}
<pre>233168</pre>
== {{header|BASIC}} ==
|