title: Print numbers in a range
body: <p>I am trying to print all numbers between 1 and 50, using the following code:</p>
  
  <pre><code>[1..50].each{|n|   puts n}
  </code></pre>
  
  <p>but the console print</p>
  
  <pre><code> [1..50] 
  </code></pre>
  
  <p>I want to print something like this
  1
  2
  3
  4
  ...
  50</p>