Jump to content

Sum multiples of 3 and 5: Difference between revisions

Line 1,996:
 
=={{header|MiniScript}}==
{{incorrect|MiniScript|outut 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.
<lang MiniScript>// simple version:
7,805

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.