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

0

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