title: How do I format an array to break every five elements into new line in ruby?
body: <p>So I have an array. I want to take the first elements and break them into new line. So my array is =</p>
  
  <pre><code>a = [0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 
  </code></pre>
  
  <p>How do I print it as </p>
  
  <pre><code>00000
  00000
  00000
  00000
  00000
  </code></pre>
  
  <p>Thanks.</p>