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}}==
{{incorrect|MiniScript|output should be 233168}}
(I suspect the output has just been copy/pasted wrong? twice?)
 
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>233156233168</pre>
 
Now the fast version.
Line 2,406 ⟶ 2,404:
print sum35fast(1000)</lang>
{{out}}
<pre>233156233168</pre>
 
=={{header|МК-61/52}}==