about | help | code help+videos | done | prefs |
Compute the sum 3 + 6 + 9 + 12 + ... + n for any input n. (You can assume that n will always be a multiple of 3.) sumTriplets(3) → 3 sumTriplets(6) → 9 sumTriplets(9) → 18 ...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: 210 Post-solution available
Copyright Nick Parlante 2017 - privacy