Sum multiples of 3 and 5: Difference between revisions

m
typo in suggestion
m (→‎{{header|BASIC}}: 467 is the number of numbers not their sum)
m (typo in suggestion)
Line 4:
{{works with|FreeBASIC}}
{{incorrect||(Or if the function is right, then the task description should say 'count of multiples of 3 or 5 no greater than a given number.' or some such...)}}
<br>I'd suggest to change s += 1 to s += Ii
<br>REXX also finds 467 numbers
<lang basic>Declare function mulsum35(n as integer) as integer
2,295

edits