email = []
start = 1
while start < 51
email.push ("jean.dupont.#{start}@email.fr")
start += 1
end
puts email
When I do puts email I want to retrieve all the mails which only have even numbers.
I have looked a lot on google or stackoverflow and see that most are tweaking their code but I would like not to touch mine too much, although I know it's necessary.
What is the correct method to retrieve peer emails with this code?