Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
# Tableau vide qu'on remplira avec une fonction
emails = []
# Fonction qui remplit le tableau avec des emails numérotés de 1 à 50
i = 1
50.times do
if i < 10
emails << "jean.dupont.0#{i}@email.fr"
else
emails << "jean.dupont.#{i}@email.fr"
end
i += 1
end
puts emails
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more