about | help | code help+videos | done | prefs |
Return the sum of all of the integers 1..n -- use the formula n(n+1)/2 -- Example: sumUp(4) = 4 + 3 + 2 + 1 = 10 sumUp(4) → 10 sumUp(1) → 1 sumUp(10) → 55 ...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: 100
Copyright Nick Parlante 2017 - privacy