Hi All,

Sorry if i am bothering you all with a silly question. I am new to
programming itself not just to ruby.

print "what is your age? "
age = gets.chomp()
puts "So you are %s years old.", %age

This is not working as expected. It is erroring out  "unterminated
string
meets end of file"

However if i use below line it works.

puts "So you are #{age} years old.

I am trying to understand the difference and reason behind this.

Any help is appreciated!

-Kaustubh

-- 
Posted via http://www.ruby-forum.com/.