Kevin B÷˛gens wrote:

> #show me the first n letters of the alphabet
> ('a'...'a'+gets.to_i).each{|e| puts e }
> 
> How to do it the right way?

I would just do ('a' .. 'z').to_a.first(gets.to_i)