Skip to content

Commit

Permalink
sum-of-multiples: Changing the example to be more explicit and making…
Browse files Browse the repository at this point in the history
… the default

behavior explicit
  • Loading branch information
abeger committed Dec 6, 2015
1 parent ce7f7c2 commit 89308fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sum-of-multiples.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
If we list all the natural numbers up to but not including 15 that are
multiples of either 3 or 5, we get 3, 5, 6 and 9, 10, and 12.
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 45.
The sum of these multiples is 78.

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

0 comments on commit 89308fd

Please sign in to comment.