title: How to multiply all elements in an doubles list?
body: <p>How do I multiply the contents of a <code>list &lt;double&gt;</code>?</p>
  
  <pre><code>List&lt;double&gt; mult=new List&lt;double&gt;{3, 5, 10};
  </code></pre>
  
  <p>So far I have:</p>
  
  <pre><code>double r=0.0;
  for(int i=0;i&lt;mult.Count;i++)
  {
      r=mult[i]*mult[(i+1)];
  }
  </code></pre>