Aim
The aim is to create a String and Integer sequence in Ruby, i.e., hello0, hello1, hello2. hello represents a String and the numbers: 1,2 and 3 are the integers.
Attempt
seq=(0..3).to_a
returns
0, 1, 2, 3
Question
How to create a String and Integer sequence in Ruby?
Aucun commentaire:
Enregistrer un commentaire