title: How do I get a sum of negative numbers in an array?
body: <p>I want to input 2 numbers and calculate the total of the numbers in between the 2 numbers and it self. 
  eg (1,3) 1+2+3 = 6</p>
  
  <p>I have tried the code below, this works with 2 positives however this does not add up positive + negative and returns 0 everytime</p>
  
  <pre><code>def get_sum(a,b)
   if a &gt; b || a &lt; b 
    num_array = (a..b).to_a.sum
    puts num_array
    else 
    puts a
   end
  end
  
  get_sum(2,-3)
  </code></pre>
  
  <p>expected -3 instead returns 0</p>