about | help | code help+videos | done | prefs |
fiveSumFromZeroToN
Write a function that returns the sum of the values between 0 and the parameter n, but only include multiples of 5. When n is negative, return 0. fiveSumFromZeroToN(0) → 0 fiveSumFromZeroToN(10) → 15 fiveSumFromZeroToN(33) → 105 ...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: 5
Copyright Nick Parlante 2017 - privacy