From 9440cca69fc68f2888f7d9de8a3c71d855071a9a Mon Sep 17 00:00:00 2001 From: Luane Date: Sat, 2 Mar 2019 03:26:23 -0400 Subject: [PATCH] Added example Input/Output to challenge (#34738) * Added example Input/Output to challenge Input/Output example will make it clear what the challenge is asking the camper to do. * Formatting changes made to file * Made minor changes in formatting Added tag to single line code. * Formatting update * Added requested formatting changes * Refactored sentence and removed earlier example --- .../sum-all-numbers-in-a-range.english.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range.english.md index 113617b1bb..c107c6da56 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range.english.md @@ -7,9 +7,12 @@ challengeType: 5 ## Description
-We'll pass you an array of two numbers. Return the sum of those two numbers plus the sum of all the numbers between them. -The lowest number will not always come first. +We'll pass you an array of two numbers. Return the sum of those two numbers plus the sum of all the numbers between them. The lowest number will not always come first. + +For example, sumAll([4,1]) should return 10 because sum of all the numbers between 1 and 4 (both inclusive) is 10. + Remember to use Read-Search-Ask if you get stuck. Try to pair program. Write your own code. +
## Instructions