Hi there,

How do I get the below script to print the 2nd part on a single line?

print 'Hello there, and what\'s your name? '
name = gets
puts 'Your name is ' + name + '? What a lovely name!'


Please see below, this is how it prints:

Hello there, and what's your name? Kareem
Your name is Kareem
? What a lovely name!

How do I get it to print like this:

Hello there, and what's your name? Kareem
Your name is Kareem? What a lovely name!

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