about | help | code help+videos | done | prefs |
Given a positive int, return the sum of all even divisible numbers, e.g. num = 12--> divisibles are: 1, 2, 3, 4, 6 -> 2+4+6 = 12 addDivisibles(12) → 12 addDivisibles(1) → 0 addDivisibles(5) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 120
Copyright Nick Parlante 2017 - privacy