about | help | code help+videos | done | prefs |
Write a method that returns the sum of all the integers between 'low' and 'high' inclusive. As a precondition you may assume that 'high' is greater than or equal to 'low' and that both are positive. test2020_10_01_APP1SLHL_sumBetween(4, 4) → 4 test2020_10_01_APP1SLHL_sumBetween(1, 2) → 3 test2020_10_01_APP1SLHL_sumBetween(2, 3) → 5 ...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: 240
Copyright Nick Parlante 2017 - privacy