Skip to content

Instantly share code, notes, and snippets.

@kdwinter
Created March 27, 2009 22:42
Show Gist options
  • Save kdwinter/86949 to your computer and use it in GitHub Desktop.
Save kdwinter/86949 to your computer and use it in GitHub Desktop.
puts 'How many numbers do you want?'
numbers = $stdin.gets.chomp
(1..numbers.to_i).each do |l|
puts "The element is #{l}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment