about | help | code help+videos | done | prefs |
Given a positive integer and a boolean with a value of true, return the sum of all the numbers between 1 and 1,000 (inclusive at both ends) that are multiples of that number. If the boolean parameter is false, return the sum of all the numbers between 1 and 1,000 that are not multiples of the number. getEmAll(1, true) → 500500 getEmAll(1, false) → 0 getEmAll(2, true) → 250500 ...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: 200
Copyright Nick Parlante 2017 - privacy