title: Sum of consecutive, positive Integers
body: <p>I want to sum up consecutive positive integers (starting a new sum at each negative value)</p>
  
  <p><strong><em>Input:</em></strong></p>
  
  <pre><code>int[] input = new int[] { 1, 2, 3, -1, 1, 3, -2, 3, 4 };
  </code></pre>
  
  <p><strong><em>Output:</em></strong></p>
  
  <pre><code>output = { 6,4,7 }; // 1+2+3=6, 1+3=4, 3+4=7
  </code></pre>
  
  <p>i tried something like <code>input.Where(x =&gt; x &gt; 0).Sum();</code> but that does not work</p>