From: Raveendran Perumalsamy Date: 2010-02-11T14:37:48+09:00 Subject: Re: Need help with Code (Input Functionality) Hi, Did you heard about chomp method earlier? If no then please go thru the link --> http://rubylearning.com/satishtalim/getting_input.html NOTE: Please try this code : puts 'What is your name?' name = gets puts 'What is your city?' city = gets puts 'What is your favorite color?' color = gets puts "Your name is #{name}.", "You live in #{city}.", "Your favorite color is #{color}." Now the answer looks C:\Desktop>ruby d.rb What is your name? f What is your city? g What is your favorite color? h Your name is f .You live in g .Your favorite color is h . Let me know if anything need further ? Thanks P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.