This should sum 1..n but drops the last number. Fix it. n is an integer ≥ 0; the sum for 0 is 0.
Sign in to solve this challenge — an account is free. The demo works without one.
All puzzles are free. An account unlocks the full catalog, saved progress and points.