+ 2
How can i do it?
I am new at this https://code.sololearn.com/cmab9As0ve7Z/?ref=app
4 ответов
+ 4
You need double quotes around #{age} like this:
age = 42
one = "He is "
two = " years old"
print(one+"#{age}"+two)
+ 2
Thank you
+ 1
You can write it easier :
age = 42
Puts "He is #{age} years old. "
0
thankful