Skip to content

Instantly share code, notes, and snippets.

@rodrigovidal
Created June 15, 2011 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigovidal/1026445 to your computer and use it in GitHub Desktop.
Save rodrigovidal/1026445 to your computer and use it in GitHub Desktop.
Implementação Imperativa de soma de uma lista
let sumAllMultiplesOf3Or5 list =
let mutable total = 0
for i in list do
if i % 3 = 0 || i % 5 = 0 then
total <- total + i
total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment