title: Printing odd numbers in an array
body: <p>I am looking to print odd numbers in an array. I have this:</p>
  
  <pre><code>numbers = []
  puts "Please enter 10 numbers, one at a time."
  10.times do
    puts "Please enter a number"
    numbers &lt;&lt; gets.chomp.to_i
    if numbers % 3 == 0
      p numbers
    end
    numbers = numbers + 1
  end
  puts "Here are the numbers you selected"
  p numbers
  </code></pre>
  
  <p>When I type in a number, I get the following: </p>
  
  <pre><code>undefined method `%' for [1]:Array
  (repl):6:in `block in &lt;main&gt;'
  </code></pre>
  
  <p>Any idea as to what is happening?</p>