about | help | code help+videos | done | prefs |
evenSum
Write a method that is given two integers, a and b such that a<b, and returns the sum of all the even numbers in the range, inclusive. evenSum(1, 5) → 6 evenSum(2, 6) → 12 evenSum(1, 2) → 2 ...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