Fundamentals
Arrays
Strings
Fundamentals
Arrays
Strings
object FindMultiples: def findMultiples: Int => Int = n => (0 until n by 2).filter(i => (i%4)*(i%6) == 0).sum
- object FindMultiples:
def findMultiples(n: Int): Int =Seq.range(0, n).filter(i => i % 4 == 0 || i % 6 == 0).sum- def findMultiples: Int => Int = n =>
- (0 until n by 2).filter(i => (i%4)*(i%6) == 0).sum