We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6022c2b commit f708a8fCopy full SHA for f708a8f
teams/tc-groovy/src/BrisFunctional/Problem1.groovy
@@ -0,0 +1,4 @@
1
+def findMultiplesUnderLimit = {limit ->
2
+ (1..<limit).sum {it%3==0||it%5==0?it:0}
3
+}
4
+assert findMultiplesUnderLimit(10) == 23
0 commit comments