about | help | code help+videos | done | prefs |
apcsaLoopsAddExclusive
Given two ints a and b, add all the numbers between a and b, exclusive. So if a is 4 and b is 7, the result should be 11, the result of 5+6. For all inputs, a < b is a precondition (a is guaranteed to be less than b for all inputs). apcsaLoopsAddExclusive(4, 7) → 11 apcsaLoopsAddExclusive(5, 8) → 13 apcsaLoopsAddExclusive(-10, -4) → -35 ...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: 150
Copyright Nick Parlante 2017 - privacy