Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion foundations/09_sumAll/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ sumAll(1, 4) // returns the sum of 1 + 2 + 3 + 4 which is 10

- How will you ensure you're summing all integers within the correct range, no matter the order of the inputs?

- Think about your sum's starting value. Then, how can you make sure every single number from the smaller input to the larger one (including both) gets added to it?
- Think about your sum's starting value. Then, how can you make sure every single number from the smaller input to the larger one (including both) gets added to it?

## Note

- This exercise only accepts positive integers. If there is a negative input, then it should return an error.