A
akbarhome
Hi,
This is the code:
a = [ 'a', 'b' ]
b = 2
stringbla = "home #{ a.each {|i| i * b } } work"
puts stringbla
output:
home ab work
How do I modifiy the iterator so the output will be:
home aabb work
Thank you.
This is the code:
a = [ 'a', 'b' ]
b = 2
stringbla = "home #{ a.each {|i| i * b } } work"
puts stringbla
output:
home ab work
How do I modifiy the iterator so the output will be:
home aabb work
Thank you.