| about | help | code help+videos | done | prefs |
sumn
Given an int n, return the sum of the integers 1 to n (1 + 2 + 3 + ... + n). If n is 0, return 0. sumn(3) → 6 sumn(5) → 15 sumn(9) → 45 ...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