title: Could someone please help translate this For loop short cut to its normal state
body: <p>could someone assist me on both translating this example to a full written for loop and also to a while loop as I am trying to understand this short cut but i am unsure of exactly what it means??</p>
  
  <pre><code>double a = 0;
  for(int b : c)
      a += b;
  a /= c.length;
  return a
  </code></pre>