about | help | code help+videos | done | prefs |
Given two ints n1 and n2, return the sum of the all the integers from n1 to n2. If n1 is greater than n2, return zero. sumNums(2, 3) → 5 sumNums(3, 6) → 18 sumNums(3, 2) → 0 ...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