title: Arithmetic operations in a list
body: <p>I have a list of integers</p>
  
  <pre><code>[2, 5, 6, 7...n]
  </code></pre>
  
  <p>I want to perform arithmetic operations so that;</p>
  
  <ol>
  <li>the sum of each element squared is calculated, and;</li>
  <li>the accumulated multiplication of each element is produced.</li>
  </ol>
  
  <p>For eg:</p>
  
  <ol>
  <li><code>2*2 + 5*5 + 6*6 + 7*7+...n*n</code></li>
  <li><code>2*5*6*7...*n</code></li>
  </ol>
  
  <p>How do i do that?</p>