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 <code> tag to single line code. * Formatting update * Added requested formatting changes * Refactored sentence and removed earlier example
This commit is contained in:
@ -7,9 +7,12 @@ challengeType: 5
|
||||
|
||||
## Description
|
||||
<section id='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, <code>sumAll([4,1])</code> should return <code>10</code> because sum of all the numbers between 1 and 4 (both inclusive) is <code>10</code>.
|
||||
|
||||
Remember to use <a href='http://forum.freecodecamp.org/t/how-to-get-help-when-you-are-stuck/19514' target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code.
|
||||
|
||||
</section>
|
||||
|
||||
## Instructions
|
||||
|
Reference in New Issue
Block a user