Sample Javascript — Accumulation

Sum the numbers divisible by N from A to B

A:   B:   N:
Accumulated sum: