title: Program to take input from command line into an array and find the biggest among them
body: <p>I am new to Ruby and just can't figure out how you take input for an array from a user and display it.If anyone could clear that I can add my logic to find the biggest number.</p>
  
  <pre><code>#!/usr/bin/ruby
  
  puts "Enter the size of the array"
  n = gets.chomp.to_i
  puts "enter the array elements"
  variable1=Array.new(n)
  
  for i in (0..n)
    variable1[i]=gets.chomp.to_i
  end
  
  for i in (0..n)
    puts variable1
  end  
  </code></pre>