diff options
-rw-r--r-- | 001.ex | 1 | ||||
-rw-r--r-- | 001.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -0,0 +1 @@ +IO.puts(Enum.sum(for x <- 0..1000, rem(x, 3) == 0 or rem(x, 5) == 0, do: x)) @@ -0,0 +1 @@ +print(sum([x for x in range(0, 1000) if x % 3 == 0 or x % 5 == 0])) |