Anonymous user
Sum multiples of 3 and 5: Difference between revisions
m
→{{header|MiniScript}}: verified and corrected program(s) output.
m (→{{header|MiniScript}}: verified and corrected program(s) output.) |
|||
Line 2,372:
=={{header|MiniScript}}==
First, the simple implementation. It loops by threes and fives, and in the second loop, skips any multiples of five that are also divisible by three.
Line 2,390 ⟶ 2,388:
print sum35(1000)</lang>
{{out}}
<pre>
Now the fast version.
Line 2,406 ⟶ 2,404:
print sum35fast(1000)</lang>
{{out}}
<pre>
=={{header|МК-61/52}}==
|