about | help | code help+videos | done | prefs |
Given an integer, return the sum of all numbers from 1 up to and including that number. For example, if the given number is 7, you should return 1+2+3+4+5+6+7. fund_sum1toN(1) → 1 fund_sum1toN(2) → 3 fund_sum1toN(3) → 6 ...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