Ad
  • Custom User Avatar

    And how are you adding all the numbers between a and b like that? See the last example, your code returns 1. The tests are ok, it's your code what's wrong.

    Given two integers a and b, which can be positive or negative, find the sum of all the numbers between including them too and return it. If the two numbers are equal return a or b.