hi,

Can I use each loop to print alternative element without giving any 'if
condition' inside the loop

a=[1,2,3,4,5]

output would be
2
4
5

-- 
Posted via http://www.ruby-forum.com/.