Skip to content

Write a program that, given a number, can find the sum of all the multiples of particular numbers up to but not including that number.

Notifications You must be signed in to change notification settings

simplonco/js-sum-of-multiples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If we list all the natural numbers up to but not including 20 that are multiples of either 3 or 5, we get 3, 5, 6 and 9, 10, 12, 15, and 18.

The sum of these multiples is 78.

Write a program that can find the sum of the multiples of a given set of numbers. If no set of numbers is given, default to 3 and 5.

About

Write a program that, given a number, can find the sum of all the multiples of particular numbers up to but not including that number.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published