A little ambiguous chalenge description in Sum All Numbers in a Range Challenge

Hi, all!

I’m a bit confused about the description of this challenge. It says

Return the sum of those two numbers plus the sum of all the numbers between them.

the “return the sum of those two numbers” part mean what? When I see the test case result, it is just the sum of all the numbers between the two numbers provided.

So, what does “return the sum of those two numbers” actually mean?

Challenge: Sum All Numbers in a Range

Link to the challenge:

If the two numbers are 1 and 5, you must return the sum 1+2+3+4+5

So the sum 1+5 plus the sum of all numbers between them 2+3+4
So (1+5)+(2+3+4)

1 Like

Ohh, I seee. At first, I thought it was (1+5)+(1+2+3+4+5), because the example says “sum all numbers between them (1 and 5) both INCLUSIVE”. So I’m really stuck on the word “inclusive” and assuming like that.

My english is not good enough yet, sometimes I’m experiencing misinterpretation like this.

I really got it right now. THANK YOU SO MUCHH!!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.