about | help | code help+videos | done | prefs |
sumAtoBcountingByC
Add up all of the integers from A to B inclusive, but you are counting by a variable increment. You may assume A <= B, and C is a positive value. e.g. sumAtoBincC(1,10,3) would add the values: 1,4,7,10. Though A and B are inclusive, B may not be included depending on the increment. sumAtoBcountingByC(1, 10, 3) → 22 sumAtoBcountingByC(1, 10, 4) → 15 sumAtoBcountingByC(12, 33, 100) → 12 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy